|
@ -49,7 +49,10 @@ |
|
|
msg: "{{ kubeadm_already_run.stat.exists }}" |
|
|
msg: "{{ kubeadm_already_run.stat.exists }}" |
|
|
|
|
|
|
|
|
- name: Joining control plane node to the cluster. |
|
|
- name: Joining control plane node to the cluster. |
|
|
command: >- |
|
|
|
|
|
|
|
|
shell: >- |
|
|
|
|
|
if [ -f /etc/kubernetes/manifests/kube-apiserver.yaml ]; then |
|
|
|
|
|
{{ bin_dir }}/kubeadm reset -f --cert-dir {{ kube_cert_dir }}; |
|
|
|
|
|
fi && |
|
|
{{ bin_dir }}/kubeadm join |
|
|
{{ bin_dir }}/kubeadm join |
|
|
--config {{ kube_config_dir }}/kubeadm-controlplane.yaml |
|
|
--config {{ kube_config_dir }}/kubeadm-controlplane.yaml |
|
|
--ignore-preflight-errors=all |
|
|
--ignore-preflight-errors=all |
|
|