mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-19 12:10:11 -03:30
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:
committed by
GitHub
parent
c6f6940459
commit
d4204a42fd
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user