From 55d3eb33b7067d9b8e89ae0e8b80fa899448de37 Mon Sep 17 00:00:00 2001 From: mohsenkamini Date: Wed, 22 Feb 2023 19:20:47 +0330 Subject: [PATCH] installing flannel through ansible is working fine --- ansible/plays/install_flannel.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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