summaryrefslogtreecommitdiffstats
path: root/roles/os_zabbix/tasks
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2015-08-27 14:46:47 -0400
committerKenny Woodson <kwoodson@redhat.com>2015-08-27 14:46:47 -0400
commit2483b7767d4e56e41e9890adfffe4bdc1480a11b (patch)
tree172b9391942022f73c1884219a5813269119f701 /roles/os_zabbix/tasks
parent96d9a943628578979b9cd0cb602bb04947c85466 (diff)
parent693be4802c2b3886b82681c5c1666b9f13d9ca36 (diff)
downloadopenshift-2483b7767d4e56e41e9890adfffe4bdc1480a11b.tar.gz
openshift-2483b7767d4e56e41e9890adfffe4bdc1480a11b.tar.bz2
openshift-2483b7767d4e56e41e9890adfffe4bdc1480a11b.tar.xz
openshift-2483b7767d4e56e41e9890adfffe4bdc1480a11b.zip
Merge pull request #520 from kwoodson/zbxupdates
Updating zabbix ansible module.
Diffstat (limited to 'roles/os_zabbix/tasks')
-rw-r--r--roles/os_zabbix/tasks/main.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/roles/os_zabbix/tasks/main.yml b/roles/os_zabbix/tasks/main.yml
new file mode 100644
index 000000000..7111c778b
--- /dev/null
+++ b/roles/os_zabbix/tasks/main.yml
@@ -0,0 +1,30 @@
+---
+- name: Main List all templates
+ zbx_template:
+ zbx_server: "{{ ozb_server }}"
+ zbx_user: "{{ ozb_user }}"
+ zbx_password: "{{ ozb_password }}"
+ state: list
+ register: templates
+
+- debug: var=templates
+
+- include_vars: template_heartbeat.yml
+- include_vars: template_os_linux.yml
+
+- 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 }}"
+
+- 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 }}"
+