Update zabbix_trigger.yml

This commit is contained in:
donotos
2021-09-06 11:18:18 +02:00
parent 5c00f9c3cc
commit 9f01375746

View File

@@ -1,21 +1,26 @@
- name: Deploy trigger action
community.zabbix.zabbix_action:
server_url: "http://172.16.2.8/"
login_user: donotos
login_password: .A3eiljkj
name: "Send alerts to Admin"
event_source: 'trigger'
state: present
status: enabled
esc_period: 60
conditions:
- type: 'trigger_severity'
operator: '>='
value: 'Information'
operations:
- type: send_message
subject: "Something bad is happening"
message: "Come on, guys do something"
media_type: 'Email'
send_to_users:
- 'donotos'
---
- name: Git pull
hosts: all
tasks:
- name: Deploy trigger action
community.zabbix.zabbix_action:
server_url: "http://172.16.2.8/"
login_user: donotos
login_password: .A3eiljkj
name: "Send alerts to Admin"
event_source: 'trigger'
state: present
status: enabled
esc_period: 60
conditions:
- type: 'trigger_severity'
operator: '>='
value: 'Information'
operations:
- type: send_message
subject: "Something bad is happening"
message: "Come on, guys do something"
media_type: 'Email'
send_to_users:
- 'donotos'