ci: dch-gw: Switch to ansiblePlaybook steps
parent
cccb442c08
commit
4148ce02a5
|
@ -22,25 +22,29 @@ pipeline {
|
|||
|
||||
stage('Services') {
|
||||
steps {
|
||||
withCredentials([file(
|
||||
credentialsId: 'ansible-vault',
|
||||
variable: 'ANSIBLE_VAULT_PASSWORD_FILE')]) {
|
||||
sshagent(['jenkins-ssh']) {
|
||||
sh 'ansible-playbook --diff -b dhcpd.yml radvd.yml'
|
||||
}
|
||||
}
|
||||
ansiblePlaybook \
|
||||
playbook: 'dhcpcd.yml',
|
||||
become: true,
|
||||
credentialsId: 'jenkins-ssh',
|
||||
vaultCredentialsId: 'ansible-vault',
|
||||
extras: '--diff'
|
||||
ansiblePlaybook \
|
||||
playbook: 'radvd.yml',
|
||||
become: true,
|
||||
credentialsId: 'jenkins-ssh',
|
||||
vaultCredentialsId: 'ansible-vault',
|
||||
extras: '--diff'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Firewall') {
|
||||
steps {
|
||||
withCredentials([file(
|
||||
credentialsId: 'ansible-vault',
|
||||
variable: 'ANSIBLE_VAULT_PASSWORD_FILE')]) {
|
||||
sshagent(['jenkins-ssh']) {
|
||||
sh 'ansible-playbook --diff -b dch-gw.yml'
|
||||
}
|
||||
}
|
||||
ansiblePlaybook \
|
||||
playbook: 'dch-gw.yml',
|
||||
become: true,
|
||||
credentialsId: 'jenkins-ssh',
|
||||
vaultCredentialsId: 'ansible-vault',
|
||||
extras: '--diff'
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue