From 51b33151b6265d6049b9b39cbb25b6a4522ef7e5 Mon Sep 17 00:00:00 2001 From: Joel Diaz Date: Tue, 9 Feb 2016 14:48:54 -0500 Subject: remote heal action for OVS down --- roles/lib_zabbix/tasks/create_template.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'roles/lib_zabbix') diff --git a/roles/lib_zabbix/tasks/create_template.yml b/roles/lib_zabbix/tasks/create_template.yml index 61344357a..783249c3a 100644 --- a/roles/lib_zabbix/tasks/create_template.yml +++ b/roles/lib_zabbix/tasks/create_template.yml @@ -61,6 +61,20 @@ with_items: template.ztriggers when: template.ztriggers is defined +- name: Create Actions + zbx_action: + zbx_server: "{{ server }}" + zbx_user: "{{ user }}" + zbx_password: "{{ password }}" + state: "{{ item.state | default('present', True) }}" + name: "{{ item.name }}" + status: "{{ item.status | default('enabled', True) }}" + escalation_time: "{{ item.escalation_time }}" + conditions_filter: "{{ item.conditions_filter }}" + operations: "{{ item.operations }}" + with_items: template.zactions + when: template.zactions is defined + - name: Create Discoveryrules zbx_discoveryrule: zbx_server: "{{ server }}" -- cgit v1.2.3