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

  1. ---
  2. - hosts: localhost
  3. become: no
  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: all
  16. gather_facts: true
  17. - hosts: etcd:k8s-cluster:calico-rr
  18. vars_prompt:
  19. name: "reset_confirmation"
  20. prompt: "Are you sure you want to reset cluster state? Type 'yes' to reset your cluster."
  21. default: "no"
  22. private: no
  23. pre_tasks:
  24. - name: check confirmation
  25. fail:
  26. msg: "Reset confirmation failed"
  27. when: reset_confirmation != "yes"
  28. roles:
  29. - { role: kubespray-defaults}
  30. - { role: reset, tags: reset }