From 61d009f18d5886db8b22ae41e04bb41a4ba2fddb Mon Sep 17 00:00:00 2001 From: Quentin Date: Sat, 1 Jun 2019 16:02:49 +0200 Subject: Initial commit --- ansible/roles/network/handlers/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 ansible/roles/network/handlers/main.yml (limited to 'ansible/roles/network/handlers') 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 -- cgit v1.2.3