From 44bfbae4df3eddfcaed14ba09316f3113ead5d0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Fri, 27 Jul 2018 13:41:04 +0200 Subject: [PATCH] Simplify handler --- handlers/main.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 }}'