Merge pull request #175 from rjacobs1990/bugfix/fix-permissions-logfiles

fix: idempotency molecule issue fixed for logfiles #173
This commit is contained in:
uk-bolly 2024-02-19 14:16:21 +00:00 committed by GitHub
commit 06ec3de5c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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: '0640'
mode: "{{ '0600' if item.mode == '0600' else '0640' }}"
loop: "{{ logfiles.files }}"
loop_control:
label: "{{ item.path }}"