ci: zabbix: Specify credentials

Since the host *gw0* is not a member of the *pyrocufflink.blue* domain,
GSSAPI authentication does not work. As such, the SSH private key has to
be made available to the `ansible-playbook` process for authentication
to that host.
jenkins-master
Dustin 2018-06-22 19:43:08 -05:00
parent cae9f2e3c2
commit 7766cc1d05
1 changed files with 3 additions and 0 deletions

View File

@ -38,6 +38,7 @@ pipeline {
playbook: 'remount.yml',
limit: 'zabbix',
become: true,
credentialsId: 'jenkins-ssh',
vaultCredentialsId: 'ansible-vault',
extraVars: [
remount_state: 'rw',
@ -61,6 +62,7 @@ pipeline {
playbook: 'zabbix-agent.yml',
limit: '!gw0',
become: true,
credentialsId: 'jenkins-ssh',
vaultCredentialsId: 'ansible-vault',
extras: '--diff'
}
@ -72,6 +74,7 @@ pipeline {
playbook: 'remount.yml',
limit: 'zabbix',
become: true,
credentialsId: 'jenkins-ssh',
vaultCredentialsId: 'ansible-vault'
}
}