Gluster mount options for systemd

This commit is contained in:
Johannes Rothe 2023-09-15 22:03:15 +02:00
parent 08b06809f2
commit b57bad9558
Signed by: onjen
GPG Key ID: 73F092605AF3286C

View File

@ -40,9 +40,9 @@
- name: Mount volume - name: Mount volume
mount: mount:
name: "{{ gluster.mount_dir }}" name: "{{ gluster.mount_dir }}"
src: "{{ ansible_all_ipv4_addresses[0] }}:/{{ gluster.vol_name }}" src: "{{ ansible_ens10.ipv4.address }}:/{{ gluster.vol_name }}"
fstype: glusterfs fstype: glusterfs
opts: "defaults,_netdev" opts: "defaults,_netdev,noauto,x-systemd.automount"
state: mounted state: mounted
become: true become: true