From a1e30b0fdb39ca64af775009bb57d481090a8bc1 Mon Sep 17 00:00:00 2001 From: Wolfgang Hotwagner Date: Thu, 20 Apr 2023 14:29:03 +0000 Subject: [PATCH] fixed handler so that the service is stopped if startup is not 1 --- handlers/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/main.yml b/handlers/main.yml index 7652750..f203be2 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -3,7 +3,7 @@ - name: shorewall restart service: name: shorewall - state: restarted + state: "{{ 'restarted' if shorewall_startup == 1 else 'stopped' }}" - name: shorewall6 restart service: