ci: samba-dc: Switch to ansiblePlaybook steps
parent
4148ce02a5
commit
e8d670c2bf
|
@ -22,19 +22,14 @@ pipeline {
|
|||
|
||||
stage('Domain Controller') {
|
||||
steps {
|
||||
withCredentials([
|
||||
file(
|
||||
credentialsId: 'ansible-vault',
|
||||
variable: 'ANSIBLE_VAULT_PASSWORD_FILE',
|
||||
),
|
||||
file(
|
||||
withCredentials([file(
|
||||
credentialsId: 'vault-jenkins@pyrocufflink.blue',
|
||||
variable: 'SUDO_PASS_FILE',
|
||||
),
|
||||
]) {
|
||||
sh '''
|
||||
ansible-playbook --check --diff -b domain-controller.yml -e "@${SUDO_PASS_FILE}"
|
||||
'''
|
||||
variable: 'SUDO_PASS_FILE')]) {
|
||||
ansiblePlaybook \
|
||||
playbook: 'domain-controller.yml',
|
||||
become: true,
|
||||
vaultCredentialsId: 'ansible-vault',
|
||||
extras: '-e@"${SUDO_PASS_FILE}" --diff'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue