remove-node roles: fix kubectl absolute path (#7469)

* kubelet absolute path

* kubelet absolute path

(cherry picked from commit e2a7f3e2ab)
This commit is contained in:
Samuel Liu 2021-04-09 03:24:02 +08:00 committed by Kubernetes Prow Robot
parent ce1fdb8db1
commit 383b2fcb4e

View file

@ -1,6 +1,7 @@
---
- name: remove-node | List nodes
command: kubectl get nodes -o go-template={% raw %}'{{ range .items }}{{ .metadata.name }}{{ "\n" }}{{ end }}'{% endraw %}
command: >-
{{ bin_dir }}/kubectl get nodes -o go-template={% raw %}'{{ range .items }}{{ .metadata.name }}{{ "\n" }}{{ end }}'{% endraw %}
register: nodes
delegate_to: "{{ groups['kube-master']|first }}"
changed_when: false