[serverctl_master_hosts] %{ for ip in serverctl_masters ~} ${ip} ansible_host=${ip} wireguard_ip=${cidrhost("192.168.0.0/24", index(serverctl_mesh_nodes, ip) + 1)} %{ endfor ~} [serverctl_node_hosts] %{ for ip in serverctl_nodes ~} ${ip} ansible_host=${ip} wireguard_ip=${cidrhost("192.168.0.0/24", index(serverctl_mesh_nodes, ip) + 1)} %{ endfor ~} [serverctl_cluster:children] serverctl_master_hosts serverctl_node_hosts [serverctl_cluster:vars] pipelining=true ansible_ssh_user=root ansible_ssh_port=22