Skip to content

Commit

Permalink
added condiation for acl pkg
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Bolwell <[email protected]>
  • Loading branch information
uk-bolly committed Aug 20, 2024
1 parent fa145a9 commit c59e598
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tasks/section_7/cis_7.2.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,9 @@

# set default ACLs so the homedir has an effective umask of 0027
- name: "7.2.9 | PATCH | Ensure local interactive user home directories are configured | Set group ACL"
when: not system_is_container
when:
- not system_is_container
- "'acl' in ansible_facts.packages"
ansible.posix.acl:
path: "{{ item }}"
default: true
Expand Down

0 comments on commit c59e598

Please sign in to comment.