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.

32 lines
808 B

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