mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-26 15:55:56 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
12
roles/zabbix_server/handlers/main.yml
Normal file
12
roles/zabbix_server/handlers/main.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
|
||||
- name: restart zabbix-server
|
||||
service: name=zabbix-server state=restarted
|
||||
when: not zabbix_server_started.changed # Do not restart if the server has just started
|
||||
|
||||
- name: restart zabbix-java-gateway
|
||||
service:
|
||||
name: zabbix-java-gateway
|
||||
state: "{{ (zabbix_server_conf['StartJavaPollers'] is defined and zabbix_server_conf['StartJavaPollers'] > 0) | ternary('restarted','stopped') }}"
|
||||
tags: zabbix
|
||||
...
|
Reference in New Issue
Block a user