Skip to content

Commit dcac6f6

Browse files
committed
feat(baseline): IPv6 is disabled at boot
The ypsman.ipv6_disable role seems not to have any effect so add ipv6.disable=1 to the kernel command line in Grub's config.
1 parent b4ef150 commit dcac6f6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

playbooks/baseline/config.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424
pip_install_packages:
2525
- name: jsondiff
2626

27+
- name: IPv6 is disabled at kernel boot
28+
ansible.builtin.lineinfile:
29+
path: /etc/default/grub
30+
line: 'GRUB_CMDLINE_LINUX="ipv6.disable=1"'
31+
regex: '^GRUB_CMDLINE_LINUX="ipv6.disable="'
32+
notify: Update Grub
33+
2734
- name: IPv6 is disabled
2835
ansible.builtin.import_role:
2936
name: ypsman.ipv6_disable
@@ -45,3 +52,8 @@
4552
- hostname: 3.ubuntu.pool.ntp.org
4653
pool: true
4754
iburst: true
55+
56+
handlers:
57+
- name: Update Grub
58+
become: true
59+
ansible.builtin.command: update-grub

0 commit comments

Comments
 (0)