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

* kubelet absolute path

* kubelet absolute path
This commit is contained in:
Samuel Liu 2021-04-09 03:24:02 +08:00 committed by GitHub
parent 5a351b4b00
commit e2a7f3e2ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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