fix: derive k3s node IPs from terraform private addresses
Some checks failed
Deploy Cluster / Terraform (push) Successful in 18s
Deploy Cluster / Ansible (push) Failing after 3m9s

This commit is contained in:
2026-03-01 03:08:56 +00:00
parent f0dd31c552
commit b5b8f89dc2
3 changed files with 39 additions and 15 deletions

View File

@@ -1,11 +1,11 @@
[control_plane]
{% for ip in control_plane_ips %}
{{ ip }}
{% for node in control_planes %}
{{ node.name }} ansible_host={{ node.public_ip }} k3s_private_ip={{ node.private_ip }}
{% endfor %}
[workers]
{% for ip in worker_ips %}
{{ ip }}
{% for node in workers %}
{{ node.name }} ansible_host={{ node.public_ip }} k3s_private_ip={{ node.private_ip }}
{% endfor %}
[cluster:children]