diff --git a/tasks/mount.yml b/tasks/mount.yml index cf99d4a6aeaaf4d6a92191ebc1972e33d3984120..4593d613a17f0ccc22ad2a6c64a3cc81823d8544 100644 --- a/tasks/mount.yml +++ b/tasks/mount.yml @@ -4,10 +4,11 @@ - name: "Ensure Mount Path" file: dest: '{{ sftp_groups[group].mountpath }}' - owner: '{{ group }}' + owner: '{{ item }}' group: '{{ group }}' state: 'directory' mode: '775' + with_items: '{{ sftp_groups[group].user }}' - name: "Create Mount Point" mount: