Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
419 B

---
- 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
...