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.

41 lines
967 B

  1. ---
  2. - hosts: localhost
  3. become: no
  4. gather_facts: False
  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. - name: Gather facts
  21. import_playbook: facts.yml
  22. - hosts: etcd:k8s-cluster:calico-rr
  23. gather_facts: False
  24. vars_prompt:
  25. name: "reset_confirmation"
  26. prompt: "Are you sure you want to reset cluster state? Type 'yes' to reset your cluster."
  27. default: "no"
  28. private: no
  29. pre_tasks:
  30. - name: check confirmation
  31. fail:
  32. msg: "Reset confirmation failed"
  33. when: reset_confirmation != "yes"
  34. roles:
  35. - { role: kubespray-defaults}
  36. - { role: reset, tags: reset }