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
parent
0500adadfa
commit
cae9f2e3c2
|
@ -45,10 +45,21 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Zabbix') {
|
stage('Zabbix Server') {
|
||||||
steps {
|
steps {
|
||||||
ansiblePlaybook \
|
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,
|
become: true,
|
||||||
vaultCredentialsId: 'ansible-vault',
|
vaultCredentialsId: 'ansible-vault',
|
||||||
extras: '--diff'
|
extras: '--diff'
|
||||||
|
|
Loading…
Reference in New Issue