From f10a9fe80ce3b3a8eeb183c24cec1f34bd0f8177 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 8 Aug 2023 22:54:28 +0200 Subject: add router role --- roles/router/tasks/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 roles/router/tasks/main.yml 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 -- cgit v1.2.3