From b0403a5f1965c834abb11cdf88fe3e84903d7b97 Mon Sep 17 00:00:00 2001 From: Eesaan Atluri <atlurie@uab.edu> Date: Mon, 4 Nov 2024 12:20:40 -0600 Subject: [PATCH] fix: Mount dirs besides adding them to fstab Otherwise, since we run this role in deploy the dirs won't be mounted and cause unexpected behavior of applications. --- ansible/roles/nfs_mounts/tasks/fstab.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/nfs_mounts/tasks/fstab.yml b/ansible/roles/nfs_mounts/tasks/fstab.yml index 44c3124b..100c0421 100644 --- a/ansible/roles/nfs_mounts/tasks/fstab.yml +++ b/ansible/roles/nfs_mounts/tasks/fstab.yml @@ -7,12 +7,12 @@ loop: "{{ mount_points }}" -- name: Make an entry in the fstab +- name: Mount the directories ansible.posix.mount: src: "master:{{ item }}" path: "{{ item }}" opts: rw,sync,hard - state: present + state: mounted fstype: nfs loop: "{{ mount_points }}" -- GitLab