library/roles/dnet_user_services_perms/tasks/dnet-data-dirs.yml: Try to fix the task that sets ACLs, again.

This commit is contained in:
Andrea Dell'Amico 2017-02-09 21:59:13 +01:00
parent f25f0c7ad9
commit 210ad9f6f0
1 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,11 @@
with_items: '{{ dnet_data_directories }}'
tags: [ 'tomcat', 'dnet', 'users' ]
- name: Recursively set the ACLs to give access and read write permissions on the dnet data directories
shell: find {{ item }} -type d -exec setfacl -d -m group:{{ dnet_group }}:rwx,m:rwx {} \; ; find {{ item }} -type d -exec setfacl -m group:{{ dnet_group }}:rwx,m:rwx {} \; ; find {{ item }} -type f -exec setfacl -m group:{{ dnet_group }}:rw,m:rw {} \;
with_items: '{{ dnet_data_directories }}'
tags: [ 'dnet_acls', 'dnet', 'users' ]
- name: Set the read permissions on the dnet log dirs
acl: name={{ item }} entity={{ dnet_group }} etype=group permissions=rx state=present
with_items: '{{ dnet_log_directories }}'