added Jenkinsfile
Some checks failed
multibranch_ansible/pipeline/head There was a failure building this commit
Some checks failed
multibranch_ansible/pipeline/head There was a failure building this commit
This commit is contained in:
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -19,7 +19,7 @@ pipeline {
|
|||||||
stage('Ansible') {
|
stage('Ansible') {
|
||||||
agent any
|
agent any
|
||||||
steps {
|
steps {
|
||||||
ansiblePlaybook credentialsId: '209d0fa2-bbd7-4af5-9aac-deec1b6aa7ec', inventory: '192.168.150.40,', playbook: 'test_play.yml'
|
ansiblePlaybook credentialsId: '209d0fa2-bbd7-4af5-9aac-deec1b6aa7ec', inventory: 'locahost,', playbook: 'test_play.yml'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,9 +3,9 @@
|
|||||||
- name: "TestPlay"
|
- name: "TestPlay"
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
become: true
|
become: true
|
||||||
hosts: 192.168.150.40
|
#hosts: 192.168.150.40
|
||||||
#hosts: localhost
|
hosts: localhost
|
||||||
#connection: local
|
connection: local
|
||||||
tasks:
|
tasks:
|
||||||
- debug:
|
- debug:
|
||||||
msg: "Hello World"
|
msg: "Hello World"
|
||||||
|
|||||||
Reference in New Issue
Block a user