forked from ansible-lockdown/RHEL9-CIS
improved find
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
c129d9af23
commit
876b5d3508
1 changed files with 6 additions and 3 deletions
|
|
@ -5,14 +5,17 @@
|
|||
- name: "4.2.3 | AUDIT | Ensure permissions on all logfiles are configured | find files"
|
||||
ansible.builtin.find:
|
||||
paths: "/var/log"
|
||||
type: file
|
||||
file_type: file
|
||||
recurse: true
|
||||
register: logfiles
|
||||
|
||||
- name: "4.2.3 | AUDIT | Ensure permissions on all logfiles are configured | find files"
|
||||
ansible.builtin.file:
|
||||
paths: "{{ item.path }}"
|
||||
path: "{{ item.path }}"
|
||||
mode: 0640
|
||||
register: logfiles
|
||||
loop: "{{ logfiles.files }}"
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
when:
|
||||
- rhel9cis_rule_4_2_3
|
||||
tags:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue