Skip to content

Commit

Permalink
Merge pull request #175 from rjacobs1990/bugfix/fix-permissions-logfiles
Browse files Browse the repository at this point in the history
fix: idempotency molecule issue fixed for logfiles #173
  • Loading branch information
uk-bolly authored Feb 19, 2024
2 parents 96536cc + 742165c commit 06ec3de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/section_4/cis_4.2.3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down

0 comments on commit 06ec3de

Please sign in to comment.