infrastructure/ansible/roles/network/handlers/main.yml
Alex Auvolat 351e6f13d5 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)
2020-06-30 17:31:35 +02:00

6 lines
233 B
YAML

---
- 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