From 86a78717614b23c7e60ab8c24c8531b96e737f4b Mon Sep 17 00:00:00 2001 From: Steve Smith Date: Mon, 10 Feb 2020 13:13:23 +1100 Subject: [PATCH] DCD-937: Add retries to NFS mount. --- roles/nfs_mount/tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/nfs_mount/tasks/main.yml b/roles/nfs_mount/tasks/main.yml index 3834e8d..743c670 100644 --- a/roles/nfs_mount/tasks/main.yml +++ b/roles/nfs_mount/tasks/main.yml @@ -15,3 +15,7 @@ fstype: nfs opts: "rw,nfsvers={{ atl_nfs_version }},lookupcache=pos,noatime,intr,rsize=32768,wsize=32768,_netdev" state: mounted + register: mount_result + until: not mount.failed + retries: 60 + delay: 5