mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2025-12-25 00:12:37 +01:00
updated to verify the exit code of killall, only report a change if something is killed
This commit is contained in:
@@ -10,9 +10,10 @@
|
|||||||
- k3s-node
|
- k3s-node
|
||||||
|
|
||||||
- name: Killall containerd-shim-runc-v2
|
- name: Killall containerd-shim-runc-v2
|
||||||
|
register: killall_containerd_shim_runc_v2
|
||||||
command: killall -9 containerd-shim-runc-v2
|
command: killall -9 containerd-shim-runc-v2
|
||||||
|
changed_when: "killall_containerd_shim_runc_v2.rc == 0"
|
||||||
failed_when: false
|
failed_when: false
|
||||||
changed_when: false
|
|
||||||
|
|
||||||
- name: Umount k3s filesystems
|
- name: Umount k3s filesystems
|
||||||
include_tasks: umount_with_childeren.yml
|
include_tasks: umount_with_childeren.yml
|
||||||
|
|||||||
Reference in New Issue
Block a user