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.

30 lines
726 B

  1. ---
  2. - name: Check ansible version
  3. import_playbook: ansible_version.yml
  4. - hosts: bastion[0]
  5. gather_facts: False
  6. roles:
  7. - { role: kubespray-defaults}
  8. - { role: bastion-ssh-config, tags: ["localhost", "bastion"]}
  9. - name: Gather facts
  10. import_playbook: facts.yml
  11. - hosts: etcd:k8s-cluster:calico-rr
  12. gather_facts: False
  13. vars_prompt:
  14. name: "reset_confirmation"
  15. prompt: "Are you sure you want to reset cluster state? Type 'yes' to reset your cluster."
  16. default: "no"
  17. private: no
  18. pre_tasks:
  19. - name: check confirmation
  20. fail:
  21. msg: "Reset confirmation failed"
  22. when: reset_confirmation != "yes"
  23. roles:
  24. - { role: kubespray-defaults}
  25. - { role: reset, tags: reset }