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.

45 lines
1.2 KiB

  1. ---
  2. - name: Check ansible version
  3. import_playbook: ansible_version.yml
  4. - hosts: all
  5. gather_facts: false
  6. tags: always
  7. tasks:
  8. - name: "Set up proxy environment"
  9. set_fact:
  10. proxy_env:
  11. http_proxy: "{{ http_proxy | default ('') }}"
  12. HTTP_PROXY: "{{ http_proxy | default ('') }}"
  13. https_proxy: "{{ https_proxy | default ('') }}"
  14. HTTPS_PROXY: "{{ https_proxy | default ('') }}"
  15. no_proxy: "{{ no_proxy | default ('') }}"
  16. NO_PROXY: "{{ no_proxy | default ('') }}"
  17. no_log: true
  18. - hosts: bastion[0]
  19. gather_facts: False
  20. roles:
  21. - { role: kubespray-defaults}
  22. - { role: bastion-ssh-config, tags: ["localhost", "bastion"]}
  23. - name: Gather facts
  24. import_playbook: facts.yml
  25. - hosts: etcd:k8s-cluster:calico-rr
  26. gather_facts: False
  27. vars_prompt:
  28. name: "reset_confirmation"
  29. prompt: "Are you sure you want to reset cluster state? Type 'yes' to reset your cluster."
  30. default: "no"
  31. private: no
  32. pre_tasks:
  33. - name: check confirmation
  34. fail:
  35. msg: "Reset confirmation failed"
  36. when: reset_confirmation != "yes"
  37. roles:
  38. - { role: kubespray-defaults}
  39. - { role: reset, tags: reset }