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.

58 lines
1.4 KiB

  1. ---
  2. - name: Check ansible version
  3. import_playbook: ansible_version.yml
  4. # These are inventory compatibility tasks to ensure we keep compatibility with old style group names
  5. - name: Add kube-master nodes to kube_control_plane
  6. hosts: kube-master
  7. gather_facts: false
  8. tags: always
  9. tasks:
  10. - name: Add nodes to kube_control_plane group
  11. group_by:
  12. key: 'kube_control_plane'
  13. - name: Add kube-node nodes to kube_node
  14. hosts: kube-node
  15. gather_facts: false
  16. tags: always
  17. tasks:
  18. - name: Add nodes to kube_node group
  19. group_by:
  20. key: 'kube_node'
  21. - name: Add k8s-cluster nodes to k8s_cluster
  22. hosts: k8s-cluster
  23. gather_facts: false
  24. tags: always
  25. tasks:
  26. - name: Add nodes to k8s_cluster group
  27. group_by:
  28. key: 'k8s_cluster'
  29. - name: Add calico-rr nodes to calico_rr
  30. hosts: calico-rr
  31. gather_facts: false
  32. tags: always
  33. tasks:
  34. - name: Add nodes to calico_rr group
  35. group_by:
  36. key: 'calico_rr'
  37. - name: Add no-floating nodes to no_floating
  38. hosts: no-floating
  39. gather_facts: false
  40. tags: always
  41. tasks:
  42. - name: Add nodes to no-floating group
  43. group_by:
  44. key: 'no_floating'
  45. - name: Install bastion ssh config
  46. hosts: bastion[0]
  47. gather_facts: false
  48. environment: "{{ proxy_disable_env }}"
  49. roles:
  50. - { role: kubespray-defaults }
  51. - { role: bastion-ssh-config, tags: ["localhost", "bastion"] }