Skip to content

Commit

Permalink
remove-node roles: fix kubectl absolute path (kubernetes-sigs#7469)
Browse files Browse the repository at this point in the history
* kubelet absolute path

* kubelet absolute path
  • Loading branch information
liupeng0518 authored Apr 8, 2021
1 parent 5a351b4 commit e2a7f3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion roles/remove-node/pre-remove/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit e2a7f3e

Please sign in to comment.