diff --git a/tasks/configure_nfs_mounts.yml b/tasks/configure_nfs_mounts.yml index 278fd1fe40091613c4696a1079b35a57c771d3e4..c8470e4d4fe126ffdcb95c28ee48212787681b1f 100644 --- a/tasks/configure_nfs_mounts.yml +++ b/tasks/configure_nfs_mounts.yml @@ -108,3 +108,15 @@ group: "{{ nfs_ingest_group }}" mode: "0770" loop: "{{ ingest_dirs.files }}" + +- name: set correct permissions/owner/group for permanent shares + ansible.builtin.file: + path: "{{ item.1.path }}" + state: directory + owner: "{{ vault_rosetta_user }}" + group: "{{ vault_rosetta_group }}" + mode: "0755" + loop: "{{ volumes | subelements('shares') }}" + loop_control: + label: "{{ item.0 }}" + when: ansible_hostname in item.0.hosts