Skip to content
Snippets Groups Projects
Commit 9cef2018 authored by mauromedda's avatar mauromedda
Browse files

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
parent 95f1e463
No related branches found
No related tags found
No related merge requests found
--- ---
- 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 }}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment