diff --git a/tasks/section_3/cis_3.1.x.yml b/tasks/section_3/cis_3.1.x.yml index ff9ec46..7099e55 100644 --- a/tasks/section_3/cis_3.1.x.yml +++ b/tasks/section_3/cis_3.1.x.yml @@ -38,7 +38,8 @@ when: - "'kernel' in rhel9cis_ipv6_disable_method" - "'ipv6.disable=1' not in discovered_rhel9cis_3_1_1_ipv6_status.stdout" - ansible.builtin.shell: grubby --update-kernel=ALL --args="ipv6.disable=1" + ansible.builtin.command: grubby --update-kernel=ALL --args="ipv6.disable=1" + changed_when: discovered_rhel9cis_3_1_1_ipv6_status.rc == 0 - name: "3.1.2 | PATCH | Ensure wireless interfaces are disabled" when: