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.

36 lines
853 B

  1. ---
  2. - hosts: localhost
  3. gather_facts: False
  4. become: no
  5. tasks:
  6. - name: "Check ansible version >=2.7.8"
  7. assert:
  8. msg: "Ansible must be v2.7.8 or higher"
  9. that:
  10. - ansible_version.string is version("2.7.8", ">=")
  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/etcd }
  24. - hosts: "{{ groups['kube-master'] | first }}"
  25. roles:
  26. - { role: recover_control_plane/master }
  27. - include: cluster.yml
  28. - hosts: "{{ groups['kube-master'] }}"
  29. roles:
  30. - { role: kubespray-defaults}
  31. - { role: recover_control_plane/post-recover }