Skip to content

Commit

Permalink
fixed handler so that the service is stopped if startup is not 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfgang Hotwagner committed Apr 20, 2023
1 parent 095b216 commit a1e30b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
- name: shorewall restart
service:
name: shorewall
state: restarted
state: "{{ 'restarted' if shorewall_startup == 1 else 'stopped' }}"

- name: shorewall6 restart
service:
Expand Down

0 comments on commit a1e30b0

Please sign in to comment.