forked from Deuxfleurs/infrastructure
23 lines
601 B
YAML
23 lines
601 B
YAML
- name: "Deploy iptablesv4 configuration"
|
|
template: src=rules.v4.j2 dest=/etc/iptables/rules.v4
|
|
|
|
- name: "Deploy iptablesv6 configuration"
|
|
copy: src=rules.v6 dest=/etc/iptables/rules.v6
|
|
|
|
- name: "Activate IP forwarding"
|
|
sysctl:
|
|
name: net.ipv4.ip_forward
|
|
value: 1
|
|
sysctl_set: yes
|
|
|
|
# These two lines are used to undo previous config, remove them once it is done
|
|
- name: "Update nsswitch.conf to not use systemd-resolved"
|
|
copy: src=nsswitch.conf dest=/etc/nsswitch.conf
|
|
|
|
- name: "Disable systemd-resolved"
|
|
systemd:
|
|
name: systemd-resolved
|
|
state: stopped
|
|
enabled: false
|
|
|
|
|