diff --git a/handlers/main.yml b/handlers/main.yml index c4b27e7..544dd4b 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -3,8 +3,6 @@ - name: Reload sysctl ansible.builtin.shell: sysctl --system - when: - - sysctl_updated.changed - name: Sysctl flush ipv4 route table ansible.posix.sysctl: diff --git a/tasks/section_3/cis_3.1.x.yml b/tasks/section_3/cis_3.1.x.yml index 7ffe31c..52a3f3c 100644 --- a/tasks/section_3/cis_3.1.x.yml +++ b/tasks/section_3/cis_3.1.x.yml @@ -44,7 +44,7 @@ ansible.builtin.shell: nmcli radio all off changed_when: false failed_when: false - when: rhel_09_wifi_enabled is changed + when: rhel_09_wifi_enabled is changed # noqa no-handler when: - rhel9cis_rule_3_1_2 tags: diff --git a/tasks/section_6/cis_6.1.x.yml b/tasks/section_6/cis_6.1.x.yml index 8a1c4a8..955f83f 100644 --- a/tasks/section_6/cis_6.1.x.yml +++ b/tasks/section_6/cis_6.1.x.yml @@ -168,7 +168,7 @@ loop: "{{ rhel_09_6_1_10_audit.results }}" when: - item | length > 0 - - item.stdout is defined # skipped items are part of results list, but don't have the registered module properties + - item.stdout is defined # skipped items are part of results list, but don't have the registered module properties - item.stdout | length > 0 - name: "6.1.10 | AUDIT | Ensure no unowned files or directories exist | Displaying any unowned files or directories" @@ -214,7 +214,7 @@ loop: "{{ rhel_09_6_1_11_audit.results }}" when: - item | length > 0 - - item.stdout is defined # skipped items are part of results list, but don't have the registered module properties + - item.stdout is defined # skipped items are part of results list, but don't have the registered module properties - item.stdout | length > 0 - name: "6.1.11 | AUDIT | Ensure no ungrouped files or directories exist | Displaying all ungrouped files or directories" @@ -270,7 +270,7 @@ loop: "{{ rhel_09_6_1_13_suid_perms.results }}" when: - item | length > 0 - - item.stdout is defined # skipped items are part of results list, but don't have the registered module properties + - item.stdout is defined # skipped items are part of results list, but don't have the registered module properties - item.stdout | length > 0 - name: "6.1.13 | AUDIT | Audit SUID executables | Alert SUID executables exist" @@ -312,7 +312,7 @@ loop: "{{ rhel_09_6_1_14_sgid_perms.results }}" when: - item | length > 0 - - item.stdout is defined # skipped items are part of results list, but don't have the registered module properties + - item.stdout is defined # skipped items are part of results list, but don't have the registered module properties - item.stdout | length > 0 - name: "6.1.14 | AUDIT | Audit SGID executables | Alert SGID executables exist"