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.

34 lines
900 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
  17. when: etcd_deployment_type != "kubeadm"
  18. - hosts: kube_control_plane[0]
  19. environment: "{{ proxy_disable_env }}"
  20. roles:
  21. - { role: kubespray-defaults}
  22. - { role: recover_control_plane/control-plane }
  23. - import_playbook: cluster.yml
  24. - hosts: kube_control_plane
  25. environment: "{{ proxy_disable_env }}"
  26. roles:
  27. - { role: kubespray-defaults}
  28. - { role: recover_control_plane/post-recover }