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.

36 lines
1.0 KiB

  1. ---
  2. - name: Check ansible version
  3. import_playbook: ansible_version.yml
  4. - name: Ensure compatibility with old groups
  5. import_playbook: legacy_groups.yml
  6. - hosts: bastion[0]
  7. gather_facts: False
  8. environment: "{{ proxy_disable_env }}"
  9. roles:
  10. - { role: kubespray-defaults}
  11. - { role: bastion-ssh-config, tags: ["localhost", "bastion"]}
  12. - name: Gather facts
  13. import_playbook: facts.yml
  14. - hosts: etcd:k8s_cluster:calico_rr
  15. gather_facts: False
  16. vars_prompt:
  17. name: "reset_confirmation"
  18. prompt: "Are you sure you want to reset cluster state? Type 'yes' to reset your cluster."
  19. default: "no"
  20. private: no
  21. pre_tasks:
  22. - name: check confirmation
  23. fail:
  24. msg: "Reset confirmation failed"
  25. when: reset_confirmation != "yes"
  26. environment: "{{ proxy_disable_env }}"
  27. roles:
  28. - { role: kubespray-defaults}
  29. - { role: kubernetes/preinstall, when: "dns_mode != 'none' and resolvconf_mode == 'host_resolvconf'", tags: resolvconf, dns_early: true }
  30. - { role: reset, tags: reset }