diff --git a/roles/kubernetes/control-plane/tasks/kubeadm-version.yml b/roles/kubernetes/control-plane/tasks/kubeadm-version.yml index 8c7feea3510..603b9389ab4 100644 --- a/roles/kubernetes/control-plane/tasks/kubeadm-version.yml +++ b/roles/kubernetes/control-plane/tasks/kubeadm-version.yml @@ -1,9 +1,4 @@ --- -- name: Get the kubeadm version - command: "{{ bin_dir }}/kubeadm version -o short" - register: kubeadm_output - changed_when: false - - name: Set kubeadm api version to v1beta2 set_fact: kubeadmConfig_api_version: v1beta2 diff --git a/roles/kubernetes/kubeadm/tasks/main.yml b/roles/kubernetes/kubeadm/tasks/main.yml index 1c05f20ee3e..148226e6df5 100644 --- a/roles/kubernetes/kubeadm/tasks/main.yml +++ b/roles/kubernetes/kubeadm/tasks/main.yml @@ -52,11 +52,6 @@ kubeadm_token: "{{ temp_token.stdout }}" when: kubeadm_token is not defined -- name: Get the kubeadm version - command: "{{ bin_dir }}/kubeadm version -o short" - register: kubeadm_output - changed_when: false - - name: Set kubeadm api version to v1beta2 set_fact: kubeadmConfig_api_version: v1beta2 diff --git a/roles/kubernetes/node/tasks/kubelet.yml b/roles/kubernetes/node/tasks/kubelet.yml index cb95cc174a8..8bff4077c1e 100644 --- a/roles/kubernetes/node/tasks/kubelet.yml +++ b/roles/kubernetes/node/tasks/kubelet.yml @@ -6,11 +6,6 @@ state: directory when: dynamic_kubelet_configuration -- name: Get the kubeadm version - command: "{{ bin_dir }}/kubeadm version -o short" - register: kubeadm_output - changed_when: false - - name: Set kubelet api version to v1beta1 set_fact: kubeletConfig_api_version: v1beta1