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: 'ansible-vault',
variable: 'ANSIBLE_VAULT_PASSWORD_FILE',
),
file(
credentialsId: 'vault-jenkins@pyrocufflink.blue', credentialsId: 'vault-jenkins@pyrocufflink.blue',
variable: 'SUDO_PASS_FILE', variable: 'SUDO_PASS_FILE')]) {
), ansiblePlaybook \
]) { playbook: 'domain-controller.yml',
sh ''' become: true,
ansible-playbook --check --diff -b domain-controller.yml -e "@${SUDO_PASS_FILE}" vaultCredentialsId: 'ansible-vault',
''' extras: '-e@"${SUDO_PASS_FILE}" --diff'
} }
} }
} }