forked from feli5/ocp-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path10_monitor.yml
38 lines (31 loc) · 819 Bytes
/
10_monitor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
- hosts: all
roles:
- common
- hosts: monitor
roles:
- upgrade
- zabbix_server
- hosts: all
tasks:
- name: Copy zabbix-agent.ansible
copy: src=files/tmp/zabbix_agent.ansible dest=/tmp/zabbix_agent.ansible
- hosts: controller
tasks:
- name: append controller to zabbix-agent.ansible
shell: echo -n "controller " >> /tmp/zabbix_agent.ansible
- hosts: compute
tasks:
- name: append compute to zabbix-agent.ansible
shell: echo -n "compute " >> /tmp/zabbix_agent.ansible
- hosts: network
tasks:
- name: append network to zabbix-agent.ansible
shell: echo -n "network " >> /tmp/zabbix_agent.ansible
- hosts: monitor
tasks:
- name: append monitor to zabbix-agent.ansible
shell: echo -n "monitor " >> /tmp/zabbix_agent.ansible
- hosts: all
roles:
- zabbix_agent