|
|
@ -7,8 +7,9 @@ |
|
|
|
tasks: |
|
|
|
tasks: |
|
|
|
- name: Initialize the control plane |
|
|
|
- name: Initialize the control plane |
|
|
|
shell: kubeadm init --pod-network-cidr={{ POD_NETWORK_CIDR }} --control-plane-endpoint "{{ APISERVER_VIP}}:{{ APISERVER_PORT }}" --upload-certs >> /etc/kubernetes/setup.out |
|
|
|
shell: kubeadm init --pod-network-cidr={{ POD_NETWORK_CIDR }} --control-plane-endpoint "{{ APISERVER_VIP}}:{{ APISERVER_PORT }}" --upload-certs >> /etc/kubernetes/setup.out |
|
|
|
args: chdir $HOME |
|
|
|
args: |
|
|
|
creates: /etc/kubernetes/setup.out |
|
|
|
chdir: $HOME |
|
|
|
|
|
|
|
creates: /etc/kubernetes/setup.out |
|
|
|
# - name: Reboot machine to finaliza presetup |
|
|
|
# - name: Reboot machine to finaliza presetup |
|
|
|
# reboot: |
|
|
|
# reboot: |
|
|
|
# reboot_timeout: 3600 |
|
|
|
# reboot_timeout: 3600 |