Files
learn-devops/opentofu/test_vm/output.tf
2024-05-29 15:54:18 +03:00

8 lines
219 B
HCL

output "vm_info" {
description = "Names and IP addresses of the created VMs"
value = {
for i in range(var.vm_count) :
format("vm-%02d", i + 1) => proxmox_virtual_environment_vm.vm[i].ipv4_addresses[1]
}
}