From b57bad95582ee1432f0017e2381e3e0e86e39d29 Mon Sep 17 00:00:00 2001 From: Johannes Rothe Date: Fri, 15 Sep 2023 22:03:15 +0200 Subject: [PATCH] Gluster mount options for systemd --- ansible/roles/glusterfs/tasks/main.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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