Skip to content

Commit

Permalink
updated to verify the exit code of killall, only report a change if s…
Browse files Browse the repository at this point in the history
…omething is killed
  • Loading branch information
stafwag committed Jul 24, 2020
1 parent 637e49d commit afc6c8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion roles/reset/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit afc6c8a

Please sign in to comment.