Add the path to kubectl binary
The post-remove action fails during the kubectl delete node action because with rc: 2, command not found. The kubectl is not in the system PATH and the full path to the binary is required
This commit is contained in:
parent
95f1e4634a
commit
9cef20187c
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: Delete node
|
- name: Delete node
|
||||||
command: kubectl delete node {{ item }}
|
command: "{{ bin_dir}}/kubectl delete node {{ item }}"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ node.split(',') | default(groups['kube-node']) }}"
|
- "{{ node.split(',') | default(groups['kube-node']) }}"
|
||||||
delegate_to: "{{ groups['kube-master']|first }}"
|
delegate_to: "{{ groups['kube-master']|first }}"
|
||||||
|
|
Loading…
Reference in a new issue