aboutsummaryrefslogtreecommitdiff
path: root/os/config/roles/network/tasks/main.yml
blob: 8b6d92d9e971d569ecc7c429d632bde1800ef4bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
- name: "Deploy iptablesv4 configuration"
  template: src=rules.v4 dest=/etc/iptables/rules.v4

- name: "Deploy iptablesv6 configuration"
  template: src=rules.v6 dest=/etc/iptables/rules.v6

- name: "Deploy systemd-networkd configuration"
  template: src=en.network dest=/etc/systemd/network/en.network

- name: "Deploy resolv.conf (the DNS section in systemd-networkd requires systemd-resolved...)"
  template: src=resolv.conf dest=/etc/resolv.conf

- name: "Activate IP forwarding"
  sysctl:
    name: net.ipv4.ip_forward
    value: "1"
    sysctl_set: yes