forked from ansible-lockdown/RHEL9-CIS
updated layout
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
f66c74f601
commit
120a0ea751
1 changed files with 12 additions and 24 deletions
|
|
@ -164,21 +164,18 @@
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
rhel_09_6_1_10_unowned_files_found: true
|
rhel_09_6_1_10_unowned_files_found: true
|
||||||
loop: "{{ rhel_09_6_1_10_audit.results }}"
|
loop: "{{ rhel_09_6_1_10_audit.results }}"
|
||||||
when:
|
when: item.stdout | length > 0
|
||||||
- item.stdout | length > 0
|
|
||||||
|
|
||||||
- name: "6.1.10 | AUDIT | Ensure no unowned files or directories exist | Displaying any unowned files or directories"
|
- name: "6.1.10 | AUDIT | Ensure no unowned files or directories exist | Displaying any unowned files or directories"
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: "Warning!! Missing owner on items in {{ rhel_09_6_1_10_audit | json_query('results[*].stdout_lines[*]') | flatten }}"
|
msg: "Warning!! Missing owner on items in {{ rhel_09_6_1_10_audit | json_query('results[*].stdout_lines[*]') | flatten }}"
|
||||||
when:
|
when: rhel_09_6_1_10_unowned_files_found
|
||||||
- rhel_09_6_1_10_unowned_files_found
|
|
||||||
|
|
||||||
- name: "6.1.10 | AUDIT | Ensure no unowned files or directories exist | warning"
|
- name: "6.1.10 | AUDIT | Ensure no unowned files or directories exist | warning"
|
||||||
ansible.builtin.import_tasks: warning_facts.yml
|
ansible.builtin.import_tasks: warning_facts.yml
|
||||||
vars:
|
vars:
|
||||||
warn_control_id: '6.1.10'
|
warn_control_id: '6.1.10'
|
||||||
when:
|
when: rhel_09_6_1_10_unowned_files_found
|
||||||
- rhel_09_6_1_10_unowned_files_found
|
|
||||||
vars:
|
vars:
|
||||||
rhel_09_6_1_10_unowned_files_found: false
|
rhel_09_6_1_10_unowned_files_found: false
|
||||||
when:
|
when:
|
||||||
|
|
@ -208,21 +205,18 @@
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
rhel_09_6_1_11_ungrouped_files_found: true
|
rhel_09_6_1_11_ungrouped_files_found: true
|
||||||
loop: "{{ rhel_09_6_1_11_audit.results }}"
|
loop: "{{ rhel_09_6_1_11_audit.results }}"
|
||||||
when:
|
when: item.stdout | length > 0
|
||||||
- item.stdout | length > 0
|
|
||||||
|
|
||||||
- name: "6.1.11 | AUDIT | Ensure no ungrouped files or directories exist | Displaying all ungrouped files or directories"
|
- name: "6.1.11 | AUDIT | Ensure no ungrouped files or directories exist | Displaying all ungrouped files or directories"
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: "Warning!! Missing group on items in {{ rhel_09_6_1_11_audit | json_query('results[*].stdout_lines[*]') | flatten }}"
|
msg: "Warning!! Missing group on items in {{ rhel_09_6_1_11_audit | json_query('results[*].stdout_lines[*]') | flatten }}"
|
||||||
when:
|
when: rhel_09_6_1_11_ungrouped_files_found
|
||||||
- rhel_09_6_1_11_ungrouped_files_found
|
|
||||||
|
|
||||||
- name: "6.1.11 | AUDIT | Ensure no ungrouped files or directories exist | warning"
|
- name: "6.1.11 | AUDIT | Ensure no ungrouped files or directories exist | warning"
|
||||||
ansible.builtin.import_tasks: warning_facts.yml
|
ansible.builtin.import_tasks: warning_facts.yml
|
||||||
vars:
|
vars:
|
||||||
warn_control_id: '6.1.11'
|
warn_control_id: '6.1.11'
|
||||||
when:
|
when: rhel_09_6_1_11_ungrouped_files_found
|
||||||
- rhel_09_6_1_11_ungrouped_files_found
|
|
||||||
vars:
|
vars:
|
||||||
- rhel_09_6_1_11_ungrouped_files_found: false
|
- rhel_09_6_1_11_ungrouped_files_found: false
|
||||||
when:
|
when:
|
||||||
|
|
@ -264,21 +258,18 @@
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
rhel8cis_6_1_13_suid_found: true
|
rhel8cis_6_1_13_suid_found: true
|
||||||
loop: "{{ rhel_09_6_1_13_suid_perms.results }}"
|
loop: "{{ rhel_09_6_1_13_suid_perms.results }}"
|
||||||
when:
|
when: item.stdout | length > 0
|
||||||
- item.stdout | length > 0
|
|
||||||
|
|
||||||
- name: "6.1.13 | AUDIT | Audit SUID executables | Alert SUID executables exist"
|
- name: "6.1.13 | AUDIT | Audit SUID executables | Alert SUID executables exist"
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: "Warning!! SUID set on items in {{ rhel_09_6_1_13_suid_perms | json_query('results[*].stdout_lines[*]') | flatten }}"
|
msg: "Warning!! SUID set on items in {{ rhel_09_6_1_13_suid_perms | json_query('results[*].stdout_lines[*]') | flatten }}"
|
||||||
when:
|
when: rhel8cis_6_1_13_suid_found
|
||||||
- rhel8cis_6_1_13_suid_found
|
|
||||||
|
|
||||||
- name: "6.1.13 | AUDIT | Audit SUID executables | Alert SUID executables exist | warning"
|
- name: "6.1.13 | AUDIT | Audit SUID executables | Alert SUID executables exist | warning"
|
||||||
ansible.builtin.import_tasks: warning_facts.yml
|
ansible.builtin.import_tasks: warning_facts.yml
|
||||||
vars:
|
vars:
|
||||||
warn_control_id: '6.1.13'
|
warn_control_id: '6.1.13'
|
||||||
when:
|
when: rhel8cis_6_1_13_suid_found
|
||||||
- rhel8cis_6_1_13_suid_found
|
|
||||||
vars:
|
vars:
|
||||||
rhel8cis_6_1_13_suid_found: false
|
rhel8cis_6_1_13_suid_found: false
|
||||||
when:
|
when:
|
||||||
|
|
@ -306,21 +297,18 @@
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
rhel8cis_6_1_14_sgid_found: true
|
rhel8cis_6_1_14_sgid_found: true
|
||||||
loop: "{{ rhel_09_6_1_14_sgid_perms.results }}"
|
loop: "{{ rhel_09_6_1_14_sgid_perms.results }}"
|
||||||
when:
|
when: item.stdout | length > 0
|
||||||
- item.stdout | length > 0
|
|
||||||
|
|
||||||
- name: "6.1.14 | AUDIT | Audit SGID executables | Alert SGID executables exist"
|
- name: "6.1.14 | AUDIT | Audit SGID executables | Alert SGID executables exist"
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: "Warning!! SGID set on items in {{ rhel_09_6_1_14_sgid_perms | json_query('results[*].stdout_lines[*]') | flatten }}"
|
msg: "Warning!! SGID set on items in {{ rhel_09_6_1_14_sgid_perms | json_query('results[*].stdout_lines[*]') | flatten }}"
|
||||||
when:
|
when: rhel8cis_6_1_14_sgid_found
|
||||||
- rhel8cis_6_1_14_sgid_found
|
|
||||||
|
|
||||||
- name: "6.1.14 | AUDIT | Audit SGID executables| warning"
|
- name: "6.1.14 | AUDIT | Audit SGID executables| warning"
|
||||||
ansible.builtin.import_tasks: warning_facts.yml
|
ansible.builtin.import_tasks: warning_facts.yml
|
||||||
vars:
|
vars:
|
||||||
warn_control_id: '6.1.14'
|
warn_control_id: '6.1.14'
|
||||||
when:
|
when: rhel8cis_6_1_14_sgid_found
|
||||||
- rhel8cis_6_1_14_sgid_found
|
|
||||||
vars:
|
vars:
|
||||||
rhel8cis_6_1_14_sgid_found: false
|
rhel8cis_6_1_14_sgid_found: false
|
||||||
when:
|
when:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue