From 351e6f13d5bee3275f46fda4a1780c71d9f338d6 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sat, 18 Jan 2020 17:34:55 +0100 Subject: Network configuration: - Remove nomad interface (unused) - Deactivate systemd-resolved - Add dns_server to production nodes variables - Add recursors option to Consul so that it can resolve outside DNS queries - Use consul as a global DNS server for machines and containers, with the outside DNS as a fallback (see roles/consul/templates/resolv.conf.j2) --- ansible/roles/network/handlers/main.yml | 6 ------ 1 file changed, 6 deletions(-) (limited to 'ansible/roles/network/handlers') diff --git a/ansible/roles/network/handlers/main.yml b/ansible/roles/network/handlers/main.yml index 3454894..85873ee 100644 --- a/ansible/roles/network/handlers/main.yml +++ b/ansible/roles/network/handlers/main.yml @@ -4,9 +4,3 @@ - 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 From d590a98bed417390fd061d5753822af045c70bc1 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 21 May 2020 15:29:43 +0200 Subject: Remove last reference to obsolete nomad1 interface --- ansible/roles/network/handlers/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ansible/roles/network/handlers') diff --git a/ansible/roles/network/handlers/main.yml b/ansible/roles/network/handlers/main.yml index 85873ee..1c72d85 100644 --- a/ansible/roles/network/handlers/main.yml +++ b/ansible/roles/network/handlers/main.yml @@ -1,6 +1,6 @@ --- - name: reload iptables - shell: iptables-restore < /etc/iptables/rules.v4 && systemctl restart docker && ifdown nomad1 || true && ifup nomad1 || true + shell: iptables-restore < /etc/iptables/rules.v4 && systemctl restart docker - name: reload ip6tables shell: ip6tables-restore < /etc/iptables/rules.v6 -- cgit v1.2.3 From 03d4e50b0508a292a7d24cc0e4cd4327118050d8 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Sun, 5 Jul 2020 19:49:32 +0200 Subject: Add my own modifications --- ansible/roles/network/handlers/main.yml | 6 ------ 1 file changed, 6 deletions(-) delete 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 deleted file mode 100644 index 1c72d85..0000000 --- a/ansible/roles/network/handlers/main.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -- name: reload iptables - shell: iptables-restore < /etc/iptables/rules.v4 && systemctl restart docker - -- name: reload ip6tables - shell: ip6tables-restore < /etc/iptables/rules.v6 -- cgit v1.2.3