use pkill on the full command line instead of killall
parent
afc6c8add7
commit
e8b0b89d5d
|
@ -9,10 +9,10 @@
|
||||||
- k3s
|
- k3s
|
||||||
- k3s-node
|
- k3s-node
|
||||||
|
|
||||||
- name: Killall containerd-shim-runc-v2
|
:- name: pkill -9 -f "k3s/data/[^/]+/bin/containerd-shim-runc"
|
||||||
register: killall_containerd_shim_runc_v2
|
register: pkill_containerd_shim_runc
|
||||||
command: killall -9 containerd-shim-runc-v2
|
command: pkill -9 -f "k3s/data/[^/]+/bin/containerd-shim-runc"
|
||||||
changed_when: "killall_containerd_shim_runc_v2.rc == 0"
|
changed_when: "pkill_containerd_shim_runc.rc == 0"
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
||||||
- name: Umount k3s filesystems
|
- name: Umount k3s filesystems
|
||||||
|
|
Loading…
Reference in New Issue