diff --git a/roles/reset/tasks/main.yml b/roles/reset/tasks/main.yml index 886fa9a41..03e2e63ea 100644 --- a/roles/reset/tasks/main.yml +++ b/roles/reset/tasks/main.yml @@ -147,6 +147,7 @@ warn: false check_mode: no register: mounted_dirs + failed_when: false tags: - mounts @@ -154,6 +155,7 @@ command: umount -f {{ item }} with_items: "{{ mounted_dirs.stdout_lines }}" register: umount_dir + when: mounted_dirs retries: 4 until: umount_dir.rc == 0 delay: 5