forked from ansible-lockdown/RHEL9-CIS
Added greate logfile logic is file changed
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
86260d8630
commit
6128104385
1 changed files with 6 additions and 0 deletions
|
|
@ -27,6 +27,8 @@
|
|||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
mode: 'u-x,g-wx,o-rwx'
|
||||
failed_when: rhel9cis_logfile_list.state not in '[ file, absent ]'
|
||||
register: rhel9cis_logfile_list
|
||||
loop: "{{ discovered_logfiles.stdout_lines }}"
|
||||
|
||||
- name: "6.2.4.1 | PATCH | Ensure access to all logfiles has been configured | change permissions"
|
||||
|
|
@ -36,6 +38,8 @@
|
|||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
mode: 'u-x,g-x,o-rwx'
|
||||
failed_when: rhel9cis_logfile_list.state not in '[ file, absent ]'
|
||||
register: rhel9cis_logfile_list
|
||||
loop: "{{ discovered_logfiles.stdout_lines }}"
|
||||
|
||||
- name: "6.2.4.1 | PATCH | Ensure access to all logfiles has been configured | change permissions"
|
||||
|
|
@ -49,4 +53,6 @@
|
|||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
mode: 'ug-x,o-wx'
|
||||
failed_when: rhel9cis_logfile_list.state not in '[ file, absent ]'
|
||||
register: rhel9cis_logfile_list
|
||||
loop: "{{ discovered_logfiles.stdout_lines }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue