aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/noheat/cluster-rke/ansible/roles/setup_nfs/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'deployment/noheat/cluster-rke/ansible/roles/setup_nfs/tasks/main.yml')
-rw-r--r--deployment/noheat/cluster-rke/ansible/roles/setup_nfs/tasks/main.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/deployment/noheat/cluster-rke/ansible/roles/setup_nfs/tasks/main.yml b/deployment/noheat/cluster-rke/ansible/roles/setup_nfs/tasks/main.yml
index 398b56317..2d8d0b006 100644
--- a/deployment/noheat/cluster-rke/ansible/roles/setup_nfs/tasks/main.yml
+++ b/deployment/noheat/cluster-rke/ansible/roles/setup_nfs/tasks/main.yml
@@ -10,6 +10,12 @@
state: present
when: nfs_role is defined and nfs_role == "server"
+- name: Umount
+ ansible.posix.mount:
+ path: "{{ nfs_mountpoint }}"
+ state: unmounted
+ ignore_errors: yes
+
- name: Remove leftovers
file:
path: "{{ nfs_mountpoint }}"