aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/network/handlers/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/network/handlers/main.yml')
-rw-r--r--ansible/roles/network/handlers/main.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/ansible/roles/network/handlers/main.yml b/ansible/roles/network/handlers/main.yml
new file mode 100644
index 0000000..3454894
--- /dev/null
+++ b/ansible/roles/network/handlers/main.yml
@@ -0,0 +1,12 @@
+---
+- name: reload iptables
+ shell: iptables-restore < /etc/iptables/rules.v4 && systemctl restart docker && ifdown nomad1 || true && ifup nomad1 || true
+
+- name: reload ip6tables
+ shell: ip6tables-restore < /etc/iptables/rules.v6
+
+- name: reload nomad interface
+ shell: ifdown nomad1 || true ; ifup nomad1
+
+- name: reload systemd-resolved
+ service: name=systemd-resolved state=restarted