From c20f38b89c8c67f6971e976488495375f09ee013 Mon Sep 17 00:00:00 2001 From: Matthew Mosesohn Date: Wed, 21 Feb 2018 14:41:57 +0300 Subject: [PATCH] retry unmount kubelet dirs --- roles/reset/tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/reset/tasks/main.yml b/roles/reset/tasks/main.yml index f6714f680..88e9065c8 100644 --- a/roles/reset/tasks/main.yml +++ b/roles/reset/tasks/main.yml @@ -67,6 +67,10 @@ - name: reset | unmount kubelet dirs command: umount {{item}} with_items: '{{ mounted_dirs.stdout_lines }}' + register: umount_dir + retries: 4 + until: umount_dir.rc == 0 + delay: 5 tags: - mounts