Manage the main interface explicitly while dealing with the ipv6 settings.

This commit is contained in:
Andrea Dell'Amico 2019-09-24 18:17:15 +02:00
parent 751d24740c
commit 3d55f3d4ac
1 changed files with 2 additions and 0 deletions

View File

@ -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