From 1266d180911300c4236a6e1411b1f1782884dafb Mon Sep 17 00:00:00 2001 From: Michal Zegan Date: Tue, 9 Apr 2019 15:21:52 +0200 Subject: Improve nfs role This commit improves the nfs role by using cluster_ip variable instead of ansible_host for getting nfs client/server address, and using /etc/exports.d instead of /etc/exports for exporting nfs filesystem. Also, this commit fixes other issues in molecule found along the way. Change-Id: Ibd4ea5d4fd937116e2dc9e1b6f85c3e019f62e17 Issue-ID: OOM-1770 Signed-off-by: Michal Zegan --- ansible/test/roles/cleanup-nfs/tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 ansible/test/roles/cleanup-nfs/tasks/main.yml (limited to 'ansible/test/roles/cleanup-nfs') diff --git a/ansible/test/roles/cleanup-nfs/tasks/main.yml b/ansible/test/roles/cleanup-nfs/tasks/main.yml new file mode 100644 index 00000000..e0ca4a41 --- /dev/null +++ b/ansible/test/roles/cleanup-nfs/tasks/main.yml @@ -0,0 +1,5 @@ +- name: "Unmount /dockerdata-nfs if mounted" + ignore_errors: true + mount: + path: /dockerdata-nfs + state: unmounted -- cgit 1.2.3-korg