ansible.netdata/handlers/main.yml

11 lines
456 B
YAML
Raw Normal View History

---
# handlers file for netdata
- name: Restart Netdata service
service:
name: '{{ netdata__service_name }}'
state: '{{ "restarted" if (netdata__deploy_state | bool and
netdata__service_manage | bool) else "stopped" }}'
enabled: '{{ netdata__service_manage | bool }}'
#state: '{{ "restarted" if (netdata__deploy_state | bool and
#netdata__service_manage | bool) else omit }}'