Delete all cri-o containers when execute reset.yml.
parent
659cccc507
commit
dfdcb56784
|
@ -60,6 +60,16 @@
|
|||
tags:
|
||||
- docker
|
||||
|
||||
- name: reset | remove all cri-o containers
|
||||
shell: "crictl ps -aq | xargs -r crictl rm"
|
||||
register: remove_all_crio_containers
|
||||
retries: 4
|
||||
until: remove_all_crio_containers.rc == 0
|
||||
delay: 5
|
||||
tags:
|
||||
- crio
|
||||
when: manage_crio
|
||||
|
||||
- name: reset | gather mounted kubelet dirs
|
||||
shell: mount | grep /var/lib/kubelet/ | awk '{print $3}' | tac
|
||||
check_mode: no
|
||||
|
|
Loading…
Reference in New Issue