File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 register : ipv6disable_replaced
1212 notify : Grub update
1313
14+ - name : " 3.1.1 | PATCH | Ensure system is checked to determine if IPv6 is enabled | Check grub cmdline linux"
15+ ansible.builtin.shell : grep "GRUB_CMDLINE_LINUX=" /etc/default/grub | cut -f2 -d'"'
16+ changed_when : false
17+ failed_when : false
18+ check_mode : false
19+ register : ubtu22cis_3_1_1_cmdline_settings
20+ when : ubtu22cis_ipv6_disable == 'grub'
21+
1422 - name : " 3.1.1 | PATCH | Ensure system is checked to determine if IPv6 is enabled | Insert ipv6.disable if it doesn't exist"
1523 ansible.builtin.lineinfile :
1624 path : /etc/default/grub
1725 regexp : ' ^(GRUB_CMDLINE_LINUX=".*)"$'
1826 line : ' \1 ipv6.disable=1"'
1927 backrefs : true
20- when : ipv6disable_replaced is not changed
28+ when :
29+ - ipv6disable_replaced is not changed
30+ - " 'ipv6.disable' not in ubtu22cis_3_1_1_cmdline_settings.stdout"
2131 notify : Grub update
2232
2333 - name : " 3.1.1 | PATCH | Ensure system is checked to determine if IPv6 is enabled | Remove net.ipv6.conf.all.disable_ipv6"
You can’t perform that action at this time.
0 commit comments