ci: pyrocufflink: Switch to ansiblePlaybook steps

jenkins-master
Dustin 2018-04-15 10:12:22 -05:00
parent 9e729014d6
commit cccb442c08
1 changed files with 8 additions and 13 deletions

View File

@ -22,19 +22,14 @@ pipeline {
stage('Domain Member') { stage('Domain Member') {
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: 'pyrocufflink.yml',
sh ''' become: true,
ansible-playbook --diff -b pyrocufflink.yml -e "@${SUDO_PASS_FILE}" vaultCredentialsId: 'ansible-vault',
''' extras: '-e@"${SUDO_PASS_FILE}" --diff'
} }
} }
} }