updated to verify the exit code of killall, only report a change if something is killed

This commit is contained in:
Staf Wagemakers 2020-07-24 15:46:07 +02:00
parent 637e49d75e
commit afc6c8add7
1 changed files with 2 additions and 1 deletions

View File

@ -10,9 +10,10 @@
- k3s-node
- name: Killall containerd-shim-runc-v2
register: killall_containerd_shim_runc_v2
command: killall -9 containerd-shim-runc-v2
changed_when: "killall_containerd_shim_runc_v2.rc == 0"
failed_when: false
changed_when: false
- name: Umount k3s filesystems
include_tasks: umount_with_childeren.yml