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
869 B

  1. ---
  2. - hosts: localhost
  3. tasks:
  4. - name: "Check ansible version !=2.7.0"
  5. assert:
  6. msg: "Ansible V2.7.0 can't be used until: https://github.com/ansible/ansible/issues/46600 is fixed"
  7. that:
  8. - ansible_version.string is version("2.7.0", "!=")
  9. - ansible_version.string is version("2.5.0", ">=")
  10. tags:
  11. - check
  12. vars:
  13. ansible_connection: local
  14. - hosts: all
  15. gather_facts: true
  16. - hosts: etcd:k8s-cluster:vault:calico-rr
  17. vars_prompt:
  18. name: "reset_confirmation"
  19. prompt: "Are you sure you want to reset cluster state? Type 'yes' to reset your cluster."
  20. default: "no"
  21. private: no
  22. pre_tasks:
  23. - name: check confirmation
  24. fail:
  25. msg: "Reset confirmation failed"
  26. when: reset_confirmation != "yes"
  27. roles:
  28. - { role: kubespray-defaults}
  29. - { role: reset, tags: reset }