homelab_cluster/tofu/inventory

12 lines
213 B
Text

[k3s_server]
${server_ip}
[k3s_agents]
%{ for ip in agent_ips ~}
${ip}
%{ endfor ~}
[all:vars]
ansible_user=${ssh_user}
ansible_ssh_private_key_file=~/.ssh/id_cluster
ansible_python_interpreter=/usr/bin/python3