diff --git a/ansible/roles/synapse-base/tasks/main.yml b/ansible/roles/synapse-base/tasks/main.yml index 499bbeb..0b7ca81 100644 --- a/ansible/roles/synapse-base/tasks/main.yml +++ b/ansible/roles/synapse-base/tasks/main.yml @@ -1,10 +1,10 @@ - name: Mount data NFS volume ansible.posix.mount: - src: 10.165.71.1:/mtx_syna_lat_internal_ru - path: /mnt + src: "{{ item.src }}" + path: "{{ item.path }}" state: mounted fstype: nfs - when: nfs.enabled == true + loop: "{{ nfs.mounts }}" - name: Create docker-compose project directories ansible.builtin.file: path: /mnt/synapse_data