ci: zabbix: Separate server, agent stages

Separating the Zabbix server and agent playbooks into separate stages
allows better visibility into the time taken for each.
jenkins-master
Dustin 2018-06-22 19:41:07 -05:00
parent 0500adadfa
commit cae9f2e3c2
1 changed files with 13 additions and 2 deletions

View File

@ -45,10 +45,21 @@ pipeline {
}
}
stage('Zabbix') {
stage('Zabbix Server') {
steps {
ansiblePlaybook \
playbook: 'zabbix.yml',
playbook: 'zabbix-server.yml',
become: true,
vaultCredentialsId: 'ansible-vault',
extras: '--diff'
}
}
stage('Zabbix Agent') {
steps {
ansiblePlaybook \
playbook: 'zabbix-agent.yml',
limit: '!gw0',
become: true,
vaultCredentialsId: 'ansible-vault',
extras: '--diff'