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.

33 lines
899 B

  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. - hosts: bastion[0]
  7. gather_facts: False
  8. environment: "{{ proxy_disable_env }}"
  9. roles:
  10. - { role: kubespray-defaults}
  11. - { role: bastion-ssh-config, tags: ["localhost", "bastion"]}
  12. - hosts: etcd[0]
  13. environment: "{{ proxy_disable_env }}"
  14. roles:
  15. - { role: kubespray-defaults}
  16. - { role: recover_control_plane/etcd, when: "not etcd_kubeadm_enabled|default(false)" }
  17. - hosts: kube_control_plane[0]
  18. environment: "{{ proxy_disable_env }}"
  19. roles:
  20. - { role: kubespray-defaults}
  21. - { role: recover_control_plane/control-plane }
  22. - include: cluster.yml
  23. - hosts: kube_control_plane
  24. environment: "{{ proxy_disable_env }}"
  25. roles:
  26. - { role: kubespray-defaults}
  27. - { role: recover_control_plane/post-recover }