diff --git a/handlers/main.yml b/handlers/main.yml index 8e15e70..0bdc44c 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -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 }}'