library/roles/dnet_user_services_perms/tasks/dnet-users-data-dirs.yml: Give the efg portal developer write access to the apache virtualhost file.

This commit is contained in:
Andrea Dell'Amico 2016-01-14 19:24:06 +01:00
parent 7acaccb794
commit 5f8e611421
1 changed files with 4 additions and 4 deletions

View File

@ -3,23 +3,23 @@
file: name={{ item.name }} state=directory owner={{ item.owner }} group={{ item.group }} mode={{ item.perms }} file: name={{ item.name }} state=directory owner={{ item.owner }} group={{ item.group }} mode={{ item.perms }}
with_items: dnet_users_data_directories with_items: dnet_users_data_directories
when: item.create and not item.file when: item.create and not item.file
tags: [ 'dnet', 'users' ] tags: [ 'dnet', 'users', 'dnet_u_acl' ]
- name: Set the read/write/access permissions on the users dnet data dirs - name: Set the read/write/access permissions on the users dnet data dirs
acl: name={{ item.name }} entity={{ dnet_group }} etype=group permissions=rwx state=present acl: name={{ item.name }} entity={{ dnet_group }} etype=group permissions=rwx state=present
with_items: dnet_users_data_directories with_items: dnet_users_data_directories
when: not item.file when: not item.file
tags: [ 'dnet', 'users' ] tags: [ 'dnet', 'users', 'dnet_u_acl' ]
- name: Set the default read/write/access permissions on the users dnet data dirs - name: Set the default read/write/access permissions on the users dnet data dirs
acl: name={{ item.name }} entity={{ dnet_group }} etype=group permissions=rwx state=present default=yes acl: name={{ item.name }} entity={{ dnet_group }} etype=group permissions=rwx state=present default=yes
with_items: dnet_users_data_directories with_items: dnet_users_data_directories
when: not item.file when: not item.file
tags: [ 'dnet', 'users' ] tags: [ 'dnet', 'users', 'dnet_u_acl' ]
- name: Set the read/write permissions on pre-existing files inside the users dnet data dirs - name: Set the read/write permissions on pre-existing files inside the users dnet data dirs
acl: name={{ item.name }} entity={{ dnet_group }} etype=group permissions=rw state=present acl: name={{ item.name }} entity={{ dnet_group }} etype=group permissions=rw state=present
with_items: dnet_users_data_directories with_items: dnet_users_data_directories
when: item.file when: item.file
tags: [ 'dnet', 'users' ] tags: [ 'dnet', 'users', 'dnet_u_acl' ]