From 628adddb78f92742a7d615b1a122a92812101fe8 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 22 Apr 2024 16:01:51 +0200 Subject: [PATCH] Allow the use of a specific group in the acls tasks. --- tasks/common-users-data-dirs.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks/common-users-data-dirs.yml b/tasks/common-users-data-dirs.yml index 0d78344..b39af38 100644 --- a/tasks/common-users-data-dirs.yml +++ b/tasks/common-users-data-dirs.yml @@ -45,22 +45,22 @@ - block: - name: Set the read/write/access permissions on the users additional data dirs - acl: name={{ item.name }} entity={{ common_users_group }} etype=group permissions={{ item.aclperms | default('rwX') }} state=present recursive=yes + acl: name={{ item.name }} entity={{ item.acl_group | default(common_users_group) }} etype=group permissions={{ item.aclperms | default('rwX') }} state=present recursive=yes with_items: '{{ additional_data_directories }}' - name: Set the default read/write/access permissions on the users additional data dirs - acl: name={{ item.name }} entity={{ common_users_group }} etype=group permissions={{ item.aclperms | default('rwX') }} state=present default=yes recursive=yes + acl: name={{ item.name }} entity={{ item.acl_group | default(common_users_group) }} etype=group permissions={{ item.aclperms | default('rwX') }} state=present default=yes recursive=yes with_items: '{{ additional_data_directories }}' tags: [ 'users_acl' ] - block: - name: Set the read/write/access permissions on the additional data dirs - acl: name={{ item.name }} entity={{ common_users_group }} etype=group permissions={{ item.aclperms | default('rwX') }} state=present recursive=yes + acl: name={{ item.name }} entity={{ item.acl_group | default(common_users_group) }} etype=group permissions={{ item.aclperms | default('rwX') }} state=present recursive=yes with_items: '{{ additional_data_directories_adjunct }}' - name: Set the default read/write/access permissions on the additional data dirs - acl: name={{ item.name }} entity={{ common_users_group }} etype=group permissions={{ item.aclperms | default('rwX') }} state=present default=yes recursive=yes + acl: name={{ item.name }} entity={{ item.acl_group | default(common_users_group) }} etype=group permissions={{ item.aclperms | default('rwX') }} state=present default=yes recursive=yes with_items: '{{ additional_data_directories_adjunct }}' tags: [ 'users_acl' ]