13 lines
332 B
YAML
13 lines
332 B
YAML
---
|
|
|
|
- name: Disable IPv6
|
|
block:
|
|
- name: Add to /etc/default/grub option ipv6.disable=1
|
|
ansible.builtin.lineinfile:
|
|
path: /etc/default/grub
|
|
regexp: '^GRUB_CMDLINE_LINUX="'
|
|
line: GRUB_CMDLINE_LINUX="ipv6.disable=1"
|
|
notify:
|
|
- Update config grub on Debian like
|
|
when: ansible_os_family == "Debian"
|