From 280036fad65736a7f0944190a0f8803fb79b786e Mon Sep 17 00:00:00 2001 From: Etienne Champetier Date: Wed, 3 Mar 2021 18:27:47 -0500 Subject: [PATCH] Remove admin.conf removal kubeadm is the default for a long time now, and admin.conf is created by it, so let kubeadm handle it Signed-off-by: Etienne Champetier --- roles/kubernetes/control-plane/tasks/kubeadm-setup.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/roles/kubernetes/control-plane/tasks/kubeadm-setup.yml b/roles/kubernetes/control-plane/tasks/kubeadm-setup.yml index 6769c5318..27d64885c 100644 --- a/roles/kubernetes/control-plane/tasks/kubeadm-setup.yml +++ b/roles/kubernetes/control-plane/tasks/kubeadm-setup.yml @@ -27,13 +27,6 @@ get_mime: no register: kubeadm_already_run -- name: kubeadm | Delete old admin.conf - file: - path: "{{ kube_config_dir }}/admin.conf" - state: absent - when: - - not kubeadm_already_run.stat.exists - - name: kubeadm | aggregate all SANs set_fact: apiserver_sans: "{{ (sans_base + groups['kube-master'] + sans_lb + sans_lb_ip + sans_supp + sans_access_ip + sans_ip + sans_address + sans_override + sans_hostname + sans_fqdn) | unique }}"