add kubespray to the XTesting as it provides newer version of kubenetes and can be...
[it/test.git] / XTesting / kubespray / recover-control-plane.yml
1 ---
2 - name: Check ansible version
3   import_playbook: ansible_version.yml
4
5 - name: Ensure compatibility with old groups
6   import_playbook: legacy_groups.yml
7
8 - hosts: bastion[0]
9   gather_facts: False
10   environment: "{{ proxy_disable_env }}"
11   roles:
12     - { role: kubespray-defaults}
13     - { role: bastion-ssh-config, tags: ["localhost", "bastion"]}
14
15 - hosts: etcd[0]
16   environment: "{{ proxy_disable_env }}"
17   roles:
18     - { role: kubespray-defaults}
19     - { role: recover_control_plane/etcd, when: "not etcd_kubeadm_enabled|default(false)" }
20
21 - hosts: kube_control_plane[0]
22   environment: "{{ proxy_disable_env }}"
23   roles:
24     - { role: kubespray-defaults}
25     - { role: recover_control_plane/control-plane }
26
27 - include: cluster.yml
28
29 - hosts: kube_control_plane
30   environment: "{{ proxy_disable_env }}"
31   roles:
32     - { role: kubespray-defaults}
33     - { role: recover_control_plane/post-recover }