--- - name: Create the users dnet data dirs file: name={{ item.name }} state=directory owner=root group={{ dnet_group }} mode=0750 with_items: dnet_users_data_directories when: item.create tags: [ 'dnet', 'users' ] - name: Set the read/write permissions on the users dnet data dirs acl: name={{ item.name }} entity={{ dnet_group }} etype=group permissions=rwx state=present with_items: dnet_users_data_directories tags: [ 'dnet', 'users' ] - name: Set the default read/write permissions on the users dnet data dirs acl: name={{ item.name }} entity={{ dnet_group }} etype=group permissions=rwx state=present default=yes with_items: dnet_users_data_directories tags: [ 'dnet', 'users' ]