aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/router
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-09-04 19:06:03 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-09-04 19:06:03 +0200
commit066c3c0f42e6cd57586ceadc0e6a527560f2d6c7 (patch)
tree5fa4248f8474342a4264a8bbd09ac9f11921f0ab /roles/router
parentfix task names, small refactoring, etc. (diff)
downloadinfra-ansible-066c3c0f42e6cd57586ceadc0e6a527560f2d6c7.tar.gz
infra-ansible-066c3c0f42e6cd57586ceadc0e6a527560f2d6c7.zip
update role READMEs
Diffstat (limited to '')
-rw-r--r--roles/router/defaults/main.yml1
-rw-r--r--roles/router/tasks/main.yml2
2 files changed, 2 insertions, 1 deletions
diff --git a/roles/router/defaults/main.yml b/roles/router/defaults/main.yml
new file mode 100644
index 0000000..bd165db
--- /dev/null
+++ b/roles/router/defaults/main.yml
@@ -0,0 +1 @@
+router_sysctl_file: /etc/sysctl.d/99-router.conf
diff --git a/roles/router/tasks/main.yml b/roles/router/tasks/main.yml
index 476afb5..ff77a40 100644
--- a/roles/router/tasks/main.yml
+++ b/roles/router/tasks/main.yml
@@ -4,7 +4,7 @@
name: '{{ item }}'
value: 1
reload: true
- sysctl_file: /etc/sysctl.d/99-router.conf
+ sysctl_file: '{{ router_sysctl_file }}'
loop:
- net.ipv4.ip_forward
- net.ipv4.conf.all.forwarding