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.

47 lines
1.1 KiB

  1. ---
  2. # This is an inventory compatibility playbook to ensure we keep compatibility with old style group names
  3. - name: Add kube-master nodes to kube_control_plane
  4. hosts: kube-master
  5. gather_facts: false
  6. tags: always
  7. tasks:
  8. - name: add nodes to kube_control_plane group
  9. group_by:
  10. key: 'kube_control_plane'
  11. - name: Add kube-node nodes to kube_node
  12. hosts: kube-node
  13. gather_facts: false
  14. tags: always
  15. tasks:
  16. - name: add nodes to kube_node group
  17. group_by:
  18. key: 'kube_node'
  19. - name: Add k8s-cluster nodes to k8s_cluster
  20. hosts: k8s-cluster
  21. gather_facts: false
  22. tags: always
  23. tasks:
  24. - name: add nodes to k8s_cluster group
  25. group_by:
  26. key: 'k8s_cluster'
  27. - name: Add calico-rr nodes to calico_rr
  28. hosts: calico-rr
  29. gather_facts: false
  30. tags: always
  31. tasks:
  32. - name: add nodes to calico_rr group
  33. group_by:
  34. key: 'calico_rr'
  35. - name: Add no-floating nodes to no_floating
  36. hosts: no-floating
  37. gather_facts: false
  38. tags: always
  39. tasks:
  40. - name: add nodes to no-floating group
  41. group_by:
  42. key: 'no_floating'