forked from ansible-lockdown/RHEL9-CIS
fix: idempotency molecule issue fixed for logfiles and prevent skipping 0600 #173
Signed-off-by: rjacobs1990 <ricardojacobs20@gmail.com>
This commit is contained in:
parent
c805ee398b
commit
8652390beb
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@
|
||||||
- name: "4.2.3 | PATCH | Ensure permissions on all logfiles are configured | change permissions"
|
- 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: "{% if item.mode != '0600' %}0640{% endif %}"
|
mode: "{{ '0640' if item.mode != '0600' else '0600' }}"
|
||||||
loop: "{{ logfiles.files }}"
|
loop: "{{ logfiles.files }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.path }}"
|
label: "{{ item.path }}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue