Skip to content

Commit

Permalink
harden reset to work in more cases (#6781)
Browse files Browse the repository at this point in the history
reset playbook fails and does not continue cleanup after for
example a host reboot with kubelet stopped/disabled
  • Loading branch information
hafe authored Oct 5, 2020
1 parent 9729b6b commit b0097fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/reset/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,15 @@
warn: false
check_mode: no
register: mounted_dirs
failed_when: false
tags:
- mounts

- name: reset | unmount kubelet dirs # noqa 301
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
Expand Down

0 comments on commit b0097fd

Please sign in to comment.