aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/router/tasks/main.yml
blob: ff77a40ac5cb86b0ee350655b225cc996b6ca4da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
- name: Enable traffic forwarding
  become: true
  ansible.posix.sysctl:
    name: '{{ item }}'
    value: 1
    reload: true
    sysctl_file: '{{ router_sysctl_file }}'
  loop:
    - net.ipv4.ip_forward
    - net.ipv4.conf.all.forwarding
    - net.ipv6.conf.all.forwarding