Simplify handler
This commit is contained in:
parent
f430743161
commit
44bfbae4df
|
@ -3,8 +3,5 @@
|
||||||
- name: Restart Netdata service
|
- name: Restart Netdata service
|
||||||
service:
|
service:
|
||||||
name: '{{ netdata__service_name }}'
|
name: '{{ netdata__service_name }}'
|
||||||
state: '{{ "restarted" if (netdata__deploy_state | bool and
|
state: "restarted"
|
||||||
netdata__service_manage | bool) else "stopped" }}'
|
|
||||||
enabled: '{{ netdata__service_manage | bool }}'
|
enabled: '{{ netdata__service_manage | bool }}'
|
||||||
#state: '{{ "restarted" if (netdata__deploy_state | bool and
|
|
||||||
#netdata__service_manage | bool) else omit }}'
|
|
||||||
|
|
Loading…
Reference in New Issue