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.

42 lines
1.0 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. tasks:
  7. - name: add nodes to kube_control_plane group
  8. group_by:
  9. key: 'kube_control_plane'
  10. - name: Add kube-node nodes to kube_node
  11. hosts: kube-node
  12. gather_facts: false
  13. tasks:
  14. - name: add nodes to kube_node group
  15. group_by:
  16. key: 'kube_node'
  17. - name: Add k8s-cluster nodes to k8s_cluster
  18. hosts: k8s-cluster
  19. gather_facts: false
  20. tasks:
  21. - name: add nodes to k8s_cluster group
  22. group_by:
  23. key: 'k8s_cluster'
  24. - name: Add calico-rr nodes to calico_rr
  25. hosts: calico-rr
  26. gather_facts: false
  27. tasks:
  28. - name: add nodes to calico_rr group
  29. group_by:
  30. key: 'calico_rr'
  31. - name: Add no-floating nodes to no_floating
  32. hosts: no-floating
  33. gather_facts: false
  34. tasks:
  35. - name: add nodes to no-floating group
  36. group_by:
  37. key: 'no_floating'