You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.0 KiB

  1. ---
  2. - name: Check ansible version
  3. import_playbook: ansible_version.yml
  4. - name: Ensure compatibility with old groups
  5. import_playbook: legacy_groups.yml
  6. - name: Install bastion ssh config
  7. hosts: bastion[0]
  8. gather_facts: False
  9. environment: "{{ proxy_disable_env }}"
  10. roles:
  11. - { role: kubespray-defaults}
  12. - { role: bastion-ssh-config, tags: ["localhost", "bastion"]}
  13. - name: Recover etcd
  14. hosts: etcd[0]
  15. environment: "{{ proxy_disable_env }}"
  16. roles:
  17. - { role: kubespray-defaults}
  18. - role: recover_control_plane/etcd
  19. when: etcd_deployment_type != "kubeadm"
  20. - name: Recover control plane
  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. - name: Apply whole cluster install
  27. import_playbook: cluster.yml
  28. - name: Perform post recover tasks
  29. hosts: kube_control_plane
  30. environment: "{{ proxy_disable_env }}"
  31. roles:
  32. - { role: kubespray-defaults}
  33. - { role: recover_control_plane/post-recover }