- name: Mount data NFS volume ansible.posix.mount: src: "{{ item.src }}" path: "{{ item.path }}" state: mounted fstype: nfs loop: "{{ nfs.mounts }}" - name: Create docker-compose project directories ansible.builtin.file: path: /mnt/synapse_data state: directory mode: '0700' owner: 991 tags: - directory - name: Create logging base directory ansible.builtin.file: path: /mnt/logs/ state: directory mode: '0755' owner: "root" tags: - dir - logdir - name: Create logging directory ansible.builtin.file: path: /mnt/logs/{{ item.name }} state: directory mode: '0755' owner: "{{ item.uid }}" tags: - dir - logdir loop: "{{ logs_dirs }}"