From 95703fb6f2b3f018265978ed0e9cf068b37a2ea6 Mon Sep 17 00:00:00 2001 From: Takashi Okamoto Date: Wed, 19 Sep 2018 08:48:45 +0900 Subject: [PATCH] Add kubelet path for kubeadm. --- roles/kubernetes/kubeadm/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/kubernetes/kubeadm/tasks/main.yml b/roles/kubernetes/kubeadm/tasks/main.yml index 5697076e8..6c4dbe5ca 100644 --- a/roles/kubernetes/kubeadm/tasks/main.yml +++ b/roles/kubernetes/kubeadm/tasks/main.yml @@ -57,6 +57,8 @@ --ignore-preflight-errors=all register: kubeadm_join when: not is_kube_master and (not kubelet_conf.stat.exists) + environment: + PATH: "{{ bin_dir }}:{{ ansible_env.PATH }}" - name: Wait for kubelet bootstrap to create config wait_for: