remove-node roles: fix kubectl absolute path (#7469)
* kubelet absolute path * kubelet absolute pathpull/7476/head
parent
5a351b4b00
commit
e2a7f3e2ab
|
@ -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_control_plane']|first }}"
|
||||
changed_when: false
|
||||
|
|
Loading…
Reference in New Issue