Simplify handler

This commit is contained in:
Jeremy Gardais 2018-07-27 13:41:04 +02:00
parent f430743161
commit 44bfbae4df
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 1 additions and 4 deletions

View File

@ -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 }}'