summaryrefslogtreecommitdiffstats
path: root/roles/os_zabbix/tasks/main.yml
blob: a8b65dd567992d149cadd388a29c5e8ca74a3280 (plain)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
---
- fail:
    msg: "Zabbix config is not yet supported on atomic hosts"
  when: openshift.common.is_containerized | bool

- name: Main List all templates
  zbx_template:
    zbx_server: "{{ ozb_server }}"
    zbx_user: "{{ ozb_user }}"
    zbx_password: "{{ ozb_password }}"
    state: list
  register: templates

- include_vars: template_heartbeat.yml
  tags:
  - heartbeat
- include_vars: template_os_linux.yml
  tags:
  - linux
- include_vars: template_docker.yml
  tags:
  - docker
- include_vars: template_openshift_master.yml
  tags:
  - openshift_master
- include_vars: template_openshift_node.yml
  tags:
  - openshift_node
- include_vars: template_ops_tools.yml
  tags:
  - ops_tools
- include_vars: template_app_zabbix_server.yml
  tags:
  - zabbix_server
- include_vars: template_app_zabbix_agent.yml
  tags:
  - zabbix_agent
- include_vars: template_performance_copilot.yml
  tags:
  - pcp
- include_vars: template_aws.yml
  tags:
  - aws
- include_vars: template_zagg_server.yml
  tags:
  - zagg_server

- name: Include Template Heartbeat
  include: ../../lib_zabbix/tasks/create_template.yml
  vars:
    template: "{{ g_template_heartbeat }}"
    server: "{{ ozb_server }}"
    user: "{{ ozb_user }}"
    password: "{{ ozb_password }}"
  tags:
  - heartbeat

- name: Include Template os_linux
  include: ../../lib_zabbix/tasks/create_template.yml
  vars:
    template: "{{ g_template_os_linux }}"
    server: "{{ ozb_server }}"
    user: "{{ ozb_user }}"
    password: "{{ ozb_password }}"
  tags:
  - linux

- name: Include Template docker
  include: ../../lib_zabbix/tasks/create_template.yml
  vars:
    template: "{{ g_template_docker }}"
    server: "{{ ozb_server }}"
    user: "{{ ozb_user }}"
    password: "{{ ozb_password }}"
  tags:
  - docker

- name: Include Template Openshift Master
  include: ../../lib_zabbix/tasks/create_template.yml
  vars:
    template: "{{ g_template_openshift_master }}"
    server: "{{ ozb_server }}"
    user: "{{ ozb_user }}"
    password: "{{ ozb_password }}"
  tags:
  - openshift_master

- name: Include Template Openshift Node
  include: ../../lib_zabbix/tasks/create_template.yml
  vars:
    template: "{{ g_template_openshift_node }}"
    server: "{{ ozb_server }}"
    user: "{{ ozb_user }}"
    password: "{{ ozb_password }}"
  tags:
  - openshift_node

- name: Include Template Ops Tools
  include: ../../lib_zabbix/tasks/create_template.yml
  vars:
    template: "{{ g_template_ops_tools }}"
    server: "{{ ozb_server }}"
    user: "{{ ozb_user }}"
    password: "{{ ozb_password }}"
  tags:
  - ops_tools

- name: Include Template App Zabbix Server
  include: ../../lib_zabbix/tasks/create_template.yml
  vars:
    template: "{{ g_template_app_zabbix_server }}"
    server: "{{ ozb_server }}"
    user: "{{ ozb_user }}"
    password: "{{ ozb_password }}"
  tags:
  - zabbix_server

- name: Include Template App Zabbix Agent
  include: ../../lib_zabbix/tasks/create_template.yml
  vars:
    template: "{{ g_template_app_zabbix_agent }}"
    server: "{{ ozb_server }}"
    user: "{{ ozb_user }}"
    password: "{{ ozb_password }}"
  tags:
  - zabbix_agent

- name: Include Template Performance Copilot
  include: ../../lib_zabbix/tasks/create_template.yml
  vars:
    template: "{{ g_template_performance_copilot }}"
    server: "{{ ozb_server }}"
    user: "{{ ozb_user }}"
    password: "{{ ozb_password }}"
  tags:
  - pcp

- name: Include Template AWS
  include: ../../lib_zabbix/tasks/create_template.yml
  vars:
    template: "{{ g_template_aws }}"
    server: "{{ ozb_server }}"
    user: "{{ ozb_user }}"
    password: "{{ ozb_password }}"
  tags:
  - aws

- name: Include Template Zagg Server
  include: ../../lib_zabbix/tasks/create_template.yml
  vars:
    template: "{{ g_template_zagg_server }}"
    server: "{{ ozb_server }}"
    user: "{{ ozb_user }}"
    password: "{{ ozb_password }}"
  tags:
  - zagg_server