mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-27 15:33:06 +00:00
change logic thanks to @rjacobs1990 see #175
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
3313a1f2c3
commit
8e7e73bbb4
1 changed files with 1 additions and 2 deletions
|
|
@ -64,12 +64,11 @@
|
||||||
- name: "4.1.4.5 | PATCH | Ensure audit configuration files are 640 or more restrictive"
|
- name: "4.1.4.5 | PATCH | Ensure audit configuration files are 640 or more restrictive"
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ item.path }}"
|
path: "{{ item.path }}"
|
||||||
mode: '0640'
|
mode: "{{ '0600' if item.mode == '0600' else '0640' }}"
|
||||||
loop: "{{ auditd_conf_files.files }}"
|
loop: "{{ auditd_conf_files.files }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.path }}"
|
label: "{{ item.path }}"
|
||||||
when:
|
when:
|
||||||
- item.mode != '06(0|4)0'
|
|
||||||
- rhel9cis_rule_4_1_4_5
|
- rhel9cis_rule_4_1_4_5
|
||||||
tags:
|
tags:
|
||||||
- level2-server
|
- level2-server
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue