From 3d55f3d4acda4ee56d867a0ae53dca93dc830c56 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 24 Sep 2019 18:17:15 +0200 Subject: [PATCH] Manage the main interface explicitly while dealing with the ipv6 settings. --- library/roles/linux-kernel-sysctl/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/roles/linux-kernel-sysctl/tasks/main.yml b/library/roles/linux-kernel-sysctl/tasks/main.yml index 0474e72..8307667 100644 --- a/library/roles/linux-kernel-sysctl/tasks/main.yml +++ b/library/roles/linux-kernel-sysctl/tasks/main.yml @@ -9,6 +9,7 @@ - net.ipv6.conf.all.disable_ipv6 - net.ipv6.conf.default.disable_ipv6 - net.ipv6.conf.lo.disable_ipv6 + - net.ipv6.conf.{{ ansible_default_ipv4.interface }}.disable_ipv6 when: disable_ipv6 - name: enable the in kernel ipv6 support @@ -17,6 +18,7 @@ - net.ipv6.conf.all.disable_ipv6 - net.ipv6.conf.default.disable_ipv6 - net.ipv6.conf.lo.disable_ipv6 + - net.ipv6.conf.{{ ansible_default_ipv4.interface }}.disable_ipv6 when: not disable_ipv6 - name: Set the custom sysctl values