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
  • Loading branch information
vjacynycz authored Apr 27, 2021
2 parents 4661e7d + 3f1acc8 commit 6f72048
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-master']|first }}"
changed_when: false
Expand Down

0 comments on commit 6f72048

Please sign in to comment.