forked from ansible-lockdown/RHEL9-CIS
fix: idempotency molecule issue fixed for logfiles #173
Signed-off-by: rjacobs1990 <ricardojacobs20@gmail.com>
This commit is contained in:
parent
3fe681c0d2
commit
c805ee398b
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: '0640'
|
mode: "{% if item.mode != '0600' %}0640{% endif %}"
|
||||||
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