ansible-roles/ubuntu-deb-general/tasks/disable-ipv6-old-servers.yml

32 lines
707 B
YAML
Raw Normal View History

---
- file: dest=/etc/modprobe.d/00-ipv6-disable.conf state=absent
when: is_debian_less_than6
tags:
- ipv6
- file: dest=/etc/modutils/disable-ipv6 state=absent
when: is_debian_less_than6
tags:
- ipv6
- file: dest=/etc/sysctl.d/10-ipv6-disable.conf state=absent
when: is_debian_less_than6
tags:
- ipv6
- lineinfile: name=/etc/modprobe.d/aliases regexp="^alias net-pf-10.*$" line="alias net-pf-10 off"
when: is_debian_less_than6
tags:
- ipv6
- lineinfile: name=/etc/modprobe.d/aliases regexp="^alias ipv6.*$" line="alias ipv6 off"
when: is_debian_less_than6
tags:
- ipv6
- action: down_ipv6_addresses action=remove
when: is_debian_less_than6
tags:
- ipv6