diff --git a/ansible/roles/glusterfs/tasks/main.yaml b/ansible/roles/glusterfs/tasks/main.yaml index 47aaba6..80307e8 100644 --- a/ansible/roles/glusterfs/tasks/main.yaml +++ b/ansible/roles/glusterfs/tasks/main.yaml @@ -40,9 +40,9 @@ - name: Mount volume mount: name: "{{ gluster.mount_dir }}" - src: "{{ ansible_all_ipv4_addresses[0] }}:/{{ gluster.vol_name }}" + src: "{{ ansible_ens10.ipv4.address }}:/{{ gluster.vol_name }}" fstype: glusterfs - opts: "defaults,_netdev" + opts: "defaults,_netdev,noauto,x-systemd.automount" state: mounted become: true