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
970 B

  1. {% for instance in droplets.results %}
  2. {{instance.droplet.name}} ansible_ssh_host={{instance.droplet.ip_address}}
  3. {% endfor %}
  4. {% if mode is defined and mode == "separate" %}
  5. [kube_control_plane]
  6. {{droplets.results[0].droplet.name}}
  7. [kube_node]
  8. {{droplets.results[1].droplet.name}}
  9. [etcd]
  10. {{droplets.results[2].droplet.name}}
  11. {% elif mode is defined and mode == "ha" %}
  12. [kube_control_plane]
  13. {{droplets.results[0].droplet.name}}
  14. {{droplets.results[1].droplet.name}}
  15. [kube_node]
  16. {{droplets.results[2].droplet.name}}
  17. [etcd]
  18. {{droplets.results[1].droplet.name}}
  19. {{droplets.results[2].droplet.name}}
  20. [broken_kube_control_plane]
  21. {{droplets.results[1].droplet.name}}
  22. [broken_etcd]
  23. {{droplets.results[2].droplet.name}}
  24. {% else %}
  25. [kube_control_plane]
  26. {{droplets.results[0].droplet.name}}
  27. [kube_node]
  28. {{droplets.results[1].droplet.name}}
  29. [etcd]
  30. {{droplets.results[0].droplet.name}}
  31. {% endif %}
  32. [calico_rr]
  33. [k8s_cluster:children]
  34. kube_node
  35. kube_control_plane
  36. calico_rr