Skip to content

Commit

Permalink
Merge pull request #1 from max-frank/add-service-enable
Browse files Browse the repository at this point in the history
Add tasks to enable/disable shorewall autostart
  • Loading branch information
whotwagner authored Mar 18, 2021
2 parents ec6e207 + f397072 commit 095b216
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tasks/configs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@
dest: "{{ shorewall_configs_dir }}/interfaces"
notify:
- shorewall restart

- name: Configure shorewall service autostart
service:
name: shorewall
enabled: "{{ 'yes' if shorewall_startup == 1 else 'no' }}"
6 changes: 6 additions & 0 deletions tasks/configsipv6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,9 @@
notify:
- shorewall6 restart
when: shorewall6_enable

- name: Configure shorewall6 service autostart
service:
name: shorewall6
enabled: "{{ 'yes' if shorewall_startup == 1 else 'no' }}"
when: shorewall6_enable

0 comments on commit 095b216

Please sign in to comment.