Fixed kubectl path.

This commit is contained in:
Takashi Okamoto 2018-07-13 15:32:08 +00:00
parent 97e0de7e29
commit 37ccf7e405

View file

@ -64,7 +64,7 @@
shell: >- shell: >-
{{ bin_dir }}/kubectl get configmap kube-proxy -n kube-system -o yaml {{ bin_dir }}/kubectl get configmap kube-proxy -n kube-system -o yaml
| sed 's#server:.*#server:\ {{ kube_apiserver_endpoint }}#g' | sed 's#server:.*#server:\ {{ kube_apiserver_endpoint }}#g'
| kubectl replace -f - | {{ bin_dir }}/kubectl replace -f -
delegate_to: "{{groups['kube-master']|first}}" delegate_to: "{{groups['kube-master']|first}}"
run_once: true run_once: true
when: is_kube_master and kubeadm_discovery_address != kube_apiserver_endpoint when: is_kube_master and kubeadm_discovery_address != kube_apiserver_endpoint