aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/firewall
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--roles/firewall/handlers/main.yml8
-rw-r--r--roles/firewall/tasks/main.yml4
2 files changed, 6 insertions, 6 deletions
diff --git a/roles/firewall/handlers/main.yml b/roles/firewall/handlers/main.yml
index 70387f3..81438db 100644
--- a/roles/firewall/handlers/main.yml
+++ b/roles/firewall/handlers/main.yml
@@ -1,5 +1,5 @@
-- name: Reload iptables
+- name: Reboot
become: true
- ansible.builtin.systemd_service:
- name: netfilter-persistent
- state: restarted
+ ansible.builtin.reboot:
+ # 3 minutes is plenty.
+ reboot_timeout: 180
diff --git a/roles/firewall/tasks/main.yml b/roles/firewall/tasks/main.yml
index 9fcf543..345f6a6 100644
--- a/roles/firewall/tasks/main.yml
+++ b/roles/firewall/tasks/main.yml
@@ -16,7 +16,7 @@
loop:
- {src: rules.v4, dest: /etc/iptables/rules.v4}
- {src: rules.v6, dest: /etc/iptables/rules.v6}
- notify: Reload iptables
+ notify: Reboot
-- name: Flush handlers
+- name: Reboot if necessary
ansible.builtin.meta: flush_handlers