2026-02-28 20:24:55 +00:00
|
|
|
[control_plane]
|
2026-03-01 03:08:56 +00:00
|
|
|
{% for node in control_planes %}
|
|
|
|
|
{{ node.name }} ansible_host={{ node.public_ip }} k3s_private_ip={{ node.private_ip }}
|
2026-02-28 20:24:55 +00:00
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
|
|
[workers]
|
2026-03-01 03:08:56 +00:00
|
|
|
{% for node in workers %}
|
|
|
|
|
{{ node.name }} ansible_host={{ node.public_ip }} k3s_private_ip={{ node.private_ip }}
|
2026-02-28 20:24:55 +00:00
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
|
|
[cluster:children]
|
|
|
|
|
control_plane
|
|
|
|
|
workers
|
|
|
|
|
|
|
|
|
|
[cluster:vars]
|
|
|
|
|
ansible_user=root
|
|
|
|
|
ansible_python_interpreter=/usr/bin/python3
|
2026-02-28 22:53:37 +00:00
|
|
|
ansible_ssh_private_key_file={{ private_key_file }}
|
2026-02-28 20:24:55 +00:00
|
|
|
k3s_version=latest
|
2026-03-23 02:39:39 +00:00
|
|
|
kube_api_endpoint={{ kube_api_lb_ip }}
|