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.

37 lines
1011 B

  1. ---
  2. - hosts: localhost
  3. gather_facts: False
  4. tasks:
  5. - name: "Check ansible version !=2.7.0"
  6. assert:
  7. msg: "Ansible V2.7.0 can't be used until: https://github.com/ansible/ansible/issues/46600 is fixed"
  8. that:
  9. - ansible_version.string is version("2.7.0", "!=")
  10. - ansible_version.string is version("2.6.0", ">=")
  11. tags:
  12. - check
  13. vars:
  14. ansible_connection: local
  15. - hosts: bastion[0]
  16. gather_facts: False
  17. roles:
  18. - { role: kubespray-defaults}
  19. - { role: bastion-ssh-config, tags: ["localhost", "bastion"]}
  20. - hosts: "{{ groups['etcd'] | first }}"
  21. roles:
  22. - { role: kubespray-defaults}
  23. - { role: recover_control_plane/pre-recover }
  24. - { role: recover_control_plane/etcd }
  25. - hosts: "{{ groups['kube-master'] | first }}"
  26. roles:
  27. - { role: recover_control_plane/master }
  28. - include: cluster.yml
  29. - hosts: "{{ groups['kube-master'] }}"
  30. roles:
  31. - { role: kubespray-defaults}
  32. - { role: recover_control_plane/post-recover }