Унифицировал
This commit is contained in:
parent
401d78ff17
commit
02fe4d12a5
@ -1,5 +1,5 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
- hosts: all
|
||||
connection: local
|
||||
roles:
|
||||
- { role: packages, become: true}
|
||||
|
4
jenkins/base-system/Jenkinsfile
vendored
4
jenkins/base-system/Jenkinsfile
vendored
@ -9,12 +9,12 @@ pipeline {
|
||||
}
|
||||
stage('check') {
|
||||
steps {
|
||||
sh 'ansible-playbook -C ansible/base-system/playbook.yml'
|
||||
sh 'ansible-playbook -i jenkins/base-system/inventory -C ansible/base-system/playbook.yml'
|
||||
}
|
||||
}
|
||||
stage('run!') {
|
||||
steps {
|
||||
sh 'ansible-playbook ansible/base-system/playbook.yml'
|
||||
sh 'ansible-playbook -i jenkins/base-system/inventory ansible/base-system/playbook.yml'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
2
jenkins/base-system/inventory
Normal file
2
jenkins/base-system/inventory
Normal file
@ -0,0 +1,2 @@
|
||||
[containers]
|
||||
test1 ip_address=10.30.83.91 ansible_connection=lxd
|
Loading…
Reference in New Issue
Block a user