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