From cae9f2e3c28303f3a23357f21562cfba95ad7c36 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Fri, 22 Jun 2018 19:41:07 -0500 Subject: [PATCH] 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. --- ci/zabbix.jenkinsfile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/ci/zabbix.jenkinsfile b/ci/zabbix.jenkinsfile index fa65bca..f517cf6 100644 --- a/ci/zabbix.jenkinsfile +++ b/ci/zabbix.jenkinsfile @@ -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'