remove-node roles: fix kubectl absolute path (#7469)
* kubelet absolute path * kubelet absolute path
This commit is contained in:
parent
5a351b4b00
commit
e2a7f3e2ab
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
- name: remove-node | List nodes
|
- 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
|
register: nodes
|
||||||
delegate_to: "{{ groups['kube_control_plane']|first }}"
|
delegate_to: "{{ groups['kube_control_plane']|first }}"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
Loading…
Reference in a new issue