diff --git a/roles/upgrade/pre-upgrade/tasks/main.yml b/roles/upgrade/pre-upgrade/tasks/main.yml index decc9d05b..e4dbe569b 100644 --- a/roles/upgrade/pre-upgrade/tasks/main.yml +++ b/roles/upgrade/pre-upgrade/tasks/main.yml @@ -1,6 +1,6 @@ --- - name: See if node is in ready state - shell: "kubectl get nodes | grep {{ inventory_hostname }}" + shell: "{{ bin_dir }}/kubectl get nodes | grep {{ inventory_hostname }}" register: kubectl_nodes delegate_to: "{{ groups['kube-master'][0] }}" failed_when: false