Browse Source

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
pull/6798/head
Hans Feldt 4 years ago
committed by GitHub
parent
commit
b0097fd0c1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions
  1. 2
      roles/reset/tasks/main.yml

2
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

Loading…
Cancel
Save