2015-08-27 17:14:27 +02:00
|
|
|
---
|
|
|
|
- name: Create the dnet data dirs
|
|
|
|
file: name={{ item }} state=directory owner={{ dnet_user }} group={{ dnet_group }} mode=0750
|
2016-06-30 11:30:35 +02:00
|
|
|
with_items: '{{ dnet_data_directories }}'
|
2015-08-27 17:14:27 +02:00
|
|
|
tags: [ 'tomcat', 'dnet', 'users' ]
|
|
|
|
|
|
|
|
- name: Create the dnet log dirs
|
|
|
|
file: name={{ item }} state=directory owner={{ tomcat_user }} group={{ dnet_group }} mode=0750
|
2016-06-30 11:30:35 +02:00
|
|
|
with_items: '{{ dnet_log_directories }}'
|
2015-08-27 17:14:27 +02:00
|
|
|
tags: [ 'tomcat', 'dnet', 'users' ]
|
|
|
|
|
|
|
|
- name: Set the read/write permissions on the dnet data dirs
|
|
|
|
acl: name={{ item }} entity={{ dnet_group }} etype=group permissions=rwx state=present
|
2016-06-30 11:30:35 +02:00
|
|
|
with_items: '{{ dnet_data_directories }}'
|
2015-08-27 17:14:27 +02:00
|
|
|
tags: [ 'tomcat', 'dnet', 'users' ]
|
|
|
|
|
|
|
|
- name: Set the default read/write permissions on the dnet data dirs
|
|
|
|
acl: name={{ item }} entity={{ dnet_group }} etype=group permissions=rwx state=present default=yes
|
2016-06-30 11:30:35 +02:00
|
|
|
with_items: '{{ dnet_data_directories }}'
|
2015-08-27 17:14:27 +02:00
|
|
|
tags: [ 'tomcat', 'dnet', 'users' ]
|
|
|
|
|
2017-02-09 21:59:13 +01:00
|
|
|
- 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' ]
|
|
|
|
|
2015-08-27 17:14:27 +02:00
|
|
|
- name: Set the read permissions on the dnet log dirs
|
|
|
|
acl: name={{ item }} entity={{ dnet_group }} etype=group permissions=rx state=present
|
2016-06-30 11:30:35 +02:00
|
|
|
with_items: '{{ dnet_log_directories }}'
|
2015-08-27 17:14:27 +02:00
|
|
|
tags: [ 'tomcat', 'dnet', 'users' ]
|
|
|
|
|
|
|
|
- name: Set the default read permissions on the dnet log dirs
|
|
|
|
acl: name={{ item }} entity={{ dnet_group }} etype=group permissions=rx state=present default=yes
|
2016-06-30 11:30:35 +02:00
|
|
|
with_items: '{{ dnet_log_directories }}'
|
2015-08-27 17:14:27 +02:00
|
|
|
tags: [ 'tomcat', 'dnet', 'users' ]
|
2016-12-16 19:14:14 +01:00
|
|
|
|
|
|
|
- name: Recursively set the ACLs to give access and read permissions on the log directories
|
|
|
|
shell: find {{ item }} -type d -exec setfacl -d -m group:{{ dnet_group }}:r-x {} \; ; find {{ item }} -type d -exec setfacl -m group:{{ dnet_group }}:r-x {} \; ; find {{ item }} -type f -exec setfacl -m group:{{ dnet_group }}:r {} \;
|
|
|
|
with_items: '{{ dnet_log_directories }}'
|
|
|
|
tags: [ 'dnet_acls', 'dnet', 'users' ]
|
|
|
|
|