added Jenkinsfile
Some checks failed
multibranch_ansible/pipeline/head There was a failure building this commit

This commit is contained in:
2023-06-05 14:43:15 +02:00
parent 421afce966
commit 5e4aa5d892
2 changed files with 3 additions and 2 deletions

3
Jenkinsfile vendored
View File

@@ -19,7 +19,8 @@ pipeline {
stage('Ansible') {
agent any
steps {
ansiblePlaybook credentialsId: '209d0fa2-bbd7-4af5-9aac-deec1b6aa7ec', inventory: 'locahost,', playbook: 'test_play.yml'
ansiblePlaybook playbook: 'test_play.yml'
# ansiblePlaybook credentialsId: '209d0fa2-bbd7-4af5-9aac-deec1b6aa7ec', inventory: '192.168.150.40,', playbook: 'test_play.yml'
}
}
}

View File

@@ -2,7 +2,7 @@
---
- name: "TestPlay"
gather_facts: true
become: true
become: false
#hosts: 192.168.150.40
hosts: localhost
connection: local