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