2019-06-01 14:02:49 +00:00
|
|
|
- name: "Deploy iptablesv4 configuration"
|
2020-10-22 15:57:02 +00:00
|
|
|
template: src=rules.v4 dest=/etc/iptables/rules.v4
|
2019-06-01 14:02:49 +00:00
|
|
|
|
|
|
|
- name: "Deploy iptablesv6 configuration"
|
2020-10-22 15:57:02 +00:00
|
|
|
template: src=rules.v6 dest=/etc/iptables/rules.v6
|
|
|
|
|
|
|
|
- name: "Deploy systemd-networkd configuration"
|
|
|
|
template: src=en.network dest=/etc/systemd/network/en.network
|
2019-06-01 14:02:49 +00:00
|
|
|
|
2020-10-22 18:22:57 +00:00
|
|
|
- name: "Deploy resolv.conf (the DNS section in systemd-networkd requires systemd-resolved...)"
|
|
|
|
template: src=resolv.conf dest=/etc/resolv.conf
|
|
|
|
|
2019-06-01 14:02:49 +00:00
|
|
|
- name: "Activate IP forwarding"
|
|
|
|
sysctl:
|
|
|
|
name: net.ipv4.ip_forward
|
2020-07-05 18:15:28 +00:00
|
|
|
value: "1"
|
2019-06-01 14:02:49 +00:00
|
|
|
sysctl_set: yes
|