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.

41 lines
1.1 KiB

  1. ---
  2. - name: Check ansible version
  3. import_playbook: ansible_version.yml
  4. - name: Add kube-master nodes to kube_control_plane
  5. # This is for old inventory which contains kube-master instead of kube_control_plane
  6. hosts: kube-master
  7. gather_facts: false
  8. tasks:
  9. - name: add nodes to kube_control_plane group
  10. group_by:
  11. key: 'kube_control_plane'
  12. - hosts: bastion[0]
  13. gather_facts: False
  14. environment: "{{ proxy_disable_env }}"
  15. roles:
  16. - { role: kubespray-defaults}
  17. - { role: bastion-ssh-config, tags: ["localhost", "bastion"]}
  18. - name: Gather facts
  19. import_playbook: facts.yml
  20. - hosts: etcd:k8s-cluster:calico-rr
  21. gather_facts: False
  22. vars_prompt:
  23. name: "reset_confirmation"
  24. prompt: "Are you sure you want to reset cluster state? Type 'yes' to reset your cluster."
  25. default: "no"
  26. private: no
  27. pre_tasks:
  28. - name: check confirmation
  29. fail:
  30. msg: "Reset confirmation failed"
  31. when: reset_confirmation != "yes"
  32. environment: "{{ proxy_disable_env }}"
  33. roles:
  34. - { role: kubespray-defaults}
  35. - { role: reset, tags: reset }