Skip to content
Snippets Groups Projects
Unverified Commit b0097fd0 authored by Hans Feldt's avatar Hans Feldt Committed by GitHub
Browse files

harden reset to work in more cases (#6781)

reset playbook fails and does not continue cleanup after for
example a host reboot with kubelet stopped/disabled
parent 9729b6b7
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment