10 lines
234 B
Terraform
10 lines
234 B
Terraform
|
|
output "vms" {
|
||
|
|
description = "Map of hostname to IP and Ansible group — consumed by make tf-inventory"
|
||
|
|
value = {
|
||
|
|
for name, cfg in local.vms : name => {
|
||
|
|
ip = split("/", cfg.ip)[0]
|
||
|
|
group = cfg.group
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|