Skip to content
Snippets Groups Projects
Commit dfdcb567 authored by Takashi Okamoto's avatar Takashi Okamoto
Browse files

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

parent 659cccc5
Branches
Tags
No related merge requests found
...@@ -60,6 +60,16 @@ ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment