This repository has been archived on 2023-03-15. You can view files and clone it, but cannot push or open issues or pull requests.
infrastructure/ansible/roles/network/tasks/main.yml

32 lines
716 B
YAML
Raw Normal View History

2019-06-01 14:02:49 +00:00
- name: "Deploy iptablesv4 configuration"
template: src=rules.v4.j2 dest=/etc/iptables/rules.v4
notify:
- reload iptables
- name: "Deploy iptablesv6 configuration"
copy: src=rules.v6 dest=/etc/iptables/rules.v6
notify:
- reload ip6tables
- name: "Activate IP forwarding"
sysctl:
name: net.ipv4.ip_forward
value: 1
sysctl_set: yes
- name: "Flush handlers"
meta: flush_handlers
2019-06-01 14:02:49 +00:00
# These two lines are used to undo previous config, remove them once it is done
- name: "Update nsswitch.conf to not use systemd-resolved"
2019-06-01 14:02:49 +00:00
copy: src=nsswitch.conf dest=/etc/nsswitch.conf
- name: "Disable systemd-resolved"
systemd:
name: systemd-resolved
state: stopped
enabled: false