diff --git a/ansible/plays/install_flannel.yml b/ansible/plays/install_flannel.yml index 428d152..4e857e9 100644 --- a/ansible/plays/install_flannel.yml +++ b/ansible/plays/install_flannel.yml @@ -1,4 +1,4 @@ -- hosts: all +- hosts: masters # vars: # foo: bar @@ -12,5 +12,5 @@ - name: add flannel shell: | - kubectl apply -f /etc/kubernetes/kube-flannel.yml + KUBECONFIG=/etc/kubernetes/admin.conf kubectl apply -f /etc/kubernetes/kube-flannel.yml