forked from ansible-lockdown/RHEL9-CIS
add file exclusions
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
184832d2ac
commit
163900e277
1 changed files with 5 additions and 1 deletions
|
|
@ -9,13 +9,17 @@
|
||||||
recurse: true
|
recurse: true
|
||||||
register: logfiles
|
register: logfiles
|
||||||
|
|
||||||
- name: "4.2.3 | AUDIT | Ensure permissions on all logfiles are configured | find files"
|
- name: "4.2.3 | PATCH | Ensure permissions on all logfiles are configured | change permissions"
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ item.path }}"
|
path: "{{ item.path }}"
|
||||||
mode: 0640
|
mode: 0640
|
||||||
loop: "{{ logfiles.files }}"
|
loop: "{{ logfiles.files }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.path }}"
|
label: "{{ item.path }}"
|
||||||
|
when:
|
||||||
|
- item.path != "/var/log/btmp"
|
||||||
|
- item.path != "/var/log/utmp"
|
||||||
|
- item.path != "/var/log/wtmp"
|
||||||
when:
|
when:
|
||||||
- rhel9cis_rule_4_2_3
|
- rhel9cis_rule_4_2_3
|
||||||
tags:
|
tags:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue