Fix crictl paths and some of docker paths (#6961)

If crictl (and docker) binaries are deployed to the directories
that are not in standard PATH (e.g. /usr/local/bin), it is required
to specify full path to the binaries.
This commit is contained in:
Alexander D. Kanevskiy
2020-11-28 18:30:47 +02:00
committed by GitHub
parent c6f6940459
commit d4204a42fd
6 changed files with 21 additions and 21 deletions

View File

@@ -67,7 +67,7 @@
- docker
- name: reset | stop all cri containers
shell: "set -o pipefail && crictl ps -aq | xargs -r crictl -t 60s stop"
shell: "set -o pipefail && {{ bin_dir }}/crictl ps -aq | xargs -r {{ bin_dir }}/crictl -t 60s stop"
args:
executable: /bin/bash
register: remove_all_cri_containers
@@ -80,7 +80,7 @@
when: container_manager in ["crio", "containerd"]
- name: reset | remove all cri containers
shell: "set -o pipefail && crictl ps -aq | xargs -r crictl -t 60s rm"
shell: "set -o pipefail && {{ bin_dir }}/crictl ps -aq | xargs -r {{ bin_dir }}/crictl -t 60s rm"
args:
executable: /bin/bash
register: remove_all_cri_containers
@@ -108,7 +108,7 @@
when: container_manager == "crio"
- name: reset | stop all cri pods
shell: "set -o pipefail && crictl pods -q | xargs -r crictl -t 60s stopp"
shell: "set -o pipefail && {{ bin_dir }}/crictl pods -q | xargs -r {{ bin_dir }}/crictl -t 60s stopp"
args:
executable: /bin/bash
register: remove_all_cri_containers
@@ -119,7 +119,7 @@
when: container_manager == "containerd"
- name: reset | remove all cri pods
shell: "set -o pipefail && crictl pods -q | xargs -r crictl -t 60s rmp"
shell: "set -o pipefail && {{ bin_dir }}/crictl pods -q | xargs -r {{ bin_dir }}/crictl -t 60s rmp"
args:
executable: /bin/bash
register: remove_all_cri_containers