From 7c67ec497644cc112931cf46383eaf1295c68fee Mon Sep 17 00:00:00 2001 From: Florian Ruynat <16313165+floryut@users.noreply.github.com> Date: Thu, 13 Jan 2022 08:12:29 +0100 Subject: [PATCH] Fix kubectl call before installing it (#8412) --- roles/kubernetes/control-plane/tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/kubernetes/control-plane/tasks/main.yml b/roles/kubernetes/control-plane/tasks/main.yml index 7271f1ca8..7fa3d1b8d 100644 --- a/roles/kubernetes/control-plane/tasks/main.yml +++ b/roles/kubernetes/control-plane/tasks/main.yml @@ -3,9 +3,6 @@ tags: - k8s-pre-upgrade -- name: Define nodes already joined to existing cluster and first_kube_control_plane - import_tasks: define-first-kube-control.yml - - name: Create webhook token auth config template: src: webhook-token-auth-config.yaml.j2 @@ -64,6 +61,9 @@ kube_apiserver_enable_admission_plugins: "{{ kube_apiserver_enable_admission_plugins | difference(['SecurityContextDeny']) | union(['PodSecurityPolicy']) | unique }}" when: podsecuritypolicy_enabled +- name: Define nodes already joined to existing cluster and first_kube_control_plane + import_tasks: define-first-kube-control.yml + - name: Include kubeadm setup import_tasks: kubeadm-setup.yml