2019-04-29 08:40:20 +00:00
|
|
|
---
|
2020-04-22 20:33:44 +00:00
|
|
|
- name: Check ansible version
|
|
|
|
import_playbook: ansible_version.yml
|
2019-04-29 08:40:20 +00:00
|
|
|
|
2021-04-29 12:20:50 +00:00
|
|
|
- name: Ensure compatibility with old groups
|
|
|
|
import_playbook: legacy_groups.yml
|
2021-03-24 00:26:05 +00:00
|
|
|
|
2019-04-29 08:40:20 +00:00
|
|
|
- hosts: bastion[0]
|
|
|
|
gather_facts: False
|
2021-02-23 17:44:02 +00:00
|
|
|
environment: "{{ proxy_disable_env }}"
|
2019-04-29 08:40:20 +00:00
|
|
|
roles:
|
|
|
|
- { role: kubespray-defaults}
|
|
|
|
- { role: bastion-ssh-config, tags: ["localhost", "bastion"]}
|
|
|
|
|
2021-07-12 07:00:47 +00:00
|
|
|
- hosts: etcd[0]
|
2021-02-23 17:44:02 +00:00
|
|
|
environment: "{{ proxy_disable_env }}"
|
2019-04-29 08:40:20 +00:00
|
|
|
roles:
|
|
|
|
- { role: kubespray-defaults}
|
2022-01-10 23:24:25 +00:00
|
|
|
- { role: recover_control_plane/etcd, when: "not etcd_kubeadm_enabled|default(false)" }
|
2019-04-29 08:40:20 +00:00
|
|
|
|
2021-07-12 07:00:47 +00:00
|
|
|
- hosts: kube_control_plane[0]
|
2021-02-23 17:44:02 +00:00
|
|
|
environment: "{{ proxy_disable_env }}"
|
2019-04-29 08:40:20 +00:00
|
|
|
roles:
|
2021-03-01 21:38:16 +00:00
|
|
|
- { role: kubespray-defaults}
|
2021-02-03 10:06:29 +00:00
|
|
|
- { role: recover_control_plane/control-plane }
|
2019-04-29 08:40:20 +00:00
|
|
|
|
2022-12-15 09:13:35 +00:00
|
|
|
- import_playbook: cluster.yml
|
2019-04-29 08:40:20 +00:00
|
|
|
|
2021-07-12 07:00:47 +00:00
|
|
|
- hosts: kube_control_plane
|
2021-02-23 17:44:02 +00:00
|
|
|
environment: "{{ proxy_disable_env }}"
|
2019-04-29 08:40:20 +00:00
|
|
|
roles:
|
|
|
|
- { role: kubespray-defaults}
|
|
|
|
- { role: recover_control_plane/post-recover }
|