remove-node roles: fix kubectl absolute path (#7469)
* kubelet absolute path
* kubelet absolute path
(cherry picked from commit e2a7f3e2ab
)
This commit is contained in:
parent
ce1fdb8db1
commit
383b2fcb4e
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-master']|first }}"
|
delegate_to: "{{ groups['kube-master']|first }}"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
Loading…
Reference in a new issue