Delete all cri-o containers when execute reset.yml.

pull/3061/head
Takashi Okamoto 2018-08-08 00:50:15 -04:00
parent 659cccc507
commit dfdcb56784
1 changed files with 10 additions and 0 deletions

View File

@ -60,6 +60,16 @@
tags: tags:
- docker - 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 - name: reset | gather mounted kubelet dirs
shell: mount | grep /var/lib/kubelet/ | awk '{print $3}' | tac shell: mount | grep /var/lib/kubelet/ | awk '{print $3}' | tac
check_mode: no check_mode: no