diff options
Diffstat (limited to 'roles/router/tasks/main.yml')
-rw-r--r-- | roles/router/tasks/main.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/router/tasks/main.yml b/roles/router/tasks/main.yml new file mode 100644 index 0000000..6aecdd4 --- /dev/null +++ b/roles/router/tasks/main.yml @@ -0,0 +1,11 @@ +- name: Set sysctl values + become: true + ansible.posix.sysctl: + name: '{{ item }}' + value: 1 + reload: true + sysctl_file: /etc/sysctl.d/99-router.conf + loop: + - net.ipv4.ip_forward + - net.ipv4.conf.all.forwarding + - net.ipv6.conf.all.forwarding |