mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-01 01:28:11 -03:30
remove-node roles: fix kubectl absolute path (#7469)
* kubelet absolute path * kubelet absolute path
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user