4
0
Fork 0

fix: idempotency molecule issue fixed for logfiles and prevent skipping 0600 #173

Signed-off-by: rjacobs1990 <ricardojacobs20@gmail.com>
This commit is contained in:
rjacobs1990 2024-02-12 15:55:42 +01:00
parent c805ee398b
commit 8652390beb
No known key found for this signature in database
GPG key ID: EA7B6E324836CABC

View file

@ -13,7 +13,7 @@
- name: "4.2.3 | PATCH | Ensure permissions on all logfiles are configured | change permissions"
ansible.builtin.file:
path: "{{ item.path }}"
mode: "{% if item.mode != '0600' %}0640{% endif %}"
mode: "{{ '0640' if item.mode != '0600' else '0600' }}"
loop: "{{ logfiles.files }}"
loop_control:
label: "{{ item.path }}"