Skip to content

Commit

Permalink
style: fix yamllint and align command and variable name to other task…
Browse files Browse the repository at this point in the history
…s that do the same thing.

Signed-off-by: Jason Hendry <[email protected]>
  • Loading branch information
Jason-Hendry committed Nov 22, 2023
1 parent f716f32 commit 4e67550
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tasks/section_3/cis_3.1.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
notify: Grub update

- name: "3.1.1 | PATCH | Ensure system is checked to determine if IPv6 is enabled | Check grub cmdline linux"
ansible.builtin.shell: 'cat /etc/default/grub | grep ^GRUB_CMDLINE_LINUX'
ansible.builtin.shell: grep "GRUB_CMDLINE_LINUX=" /etc/default/grub | cut -f2 -d'"'
changed_when: false
failed_when: false
check_mode: false
register: ubtu22cis_3_1_1_GRUB_CMDLINE_LINUX
register: ubtu22cis_3_1_1_cmdline_settings
when: ubtu22cis_ipv6_disable == 'grub'

- name: "3.1.1 | PATCH | Ensure system is checked to determine if IPv6 is enabled | Insert ipv6.disable if it doesn't exist"
Expand All @@ -26,8 +26,8 @@
line: '\1 ipv6.disable=1"'
backrefs: true
when:
- ipv6disable_replaced is not changed
- "'ipv6.disable' not in ubtu22cis_3_1_1_GRUB_CMDLINE_LINUX.stdout"
- ipv6disable_replaced is not changed
- "'ipv6.disable' not in ubtu22cis_3_1_1_cmdline_settings.stdout"
notify: Grub update

- name: "3.1.1 | PATCH | Ensure system is checked to determine if IPv6 is enabled | Remove net.ipv6.conf.all.disable_ipv6"
Expand Down

0 comments on commit 4e67550

Please sign in to comment.