This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Remove ipv6 hosts entry | |
replace: | |
dest: /etc/hosts | |
regexp: '^.*::\d\t.+|.*IPv6.*$' | |
#backup: yes | |
become: yes | |
# TODO FIND A WAY TO ELIMINATE EMPTY ROWS INSIDE /etc/hosts file | |
- name: Find ipv6 kernel parameter | |
shell: sysctl --all | egrep '^net.ipv6\..*disable' | awk '{print $1}' |