ci: samba-dc: Switch to ansiblePlaybook steps

jenkins-master
Dustin 2018-04-15 10:15:49 -05:00
parent 4148ce02a5
commit e8d670c2bf
1 changed files with 8 additions and 13 deletions

View File

@ -22,19 +22,14 @@ pipeline {
stage('Domain Controller') { stage('Domain Controller') {
steps { steps {
withCredentials([ withCredentials([file(
file( credentialsId: 'vault-jenkins@pyrocufflink.blue',
credentialsId: 'ansible-vault', variable: 'SUDO_PASS_FILE')]) {
variable: 'ANSIBLE_VAULT_PASSWORD_FILE', ansiblePlaybook \
), playbook: 'domain-controller.yml',
file( become: true,
credentialsId: 'vault-jenkins@pyrocufflink.blue', vaultCredentialsId: 'ansible-vault',
variable: 'SUDO_PASS_FILE', extras: '-e@"${SUDO_PASS_FILE}" --diff'
),
]) {
sh '''
ansible-playbook --check --diff -b domain-controller.yml -e "@${SUDO_PASS_FILE}"
'''
} }
} }
} }