diff --git a/terraform/output.tf b/terraform/output.tf index 2330874..28efed2 100644 --- a/terraform/output.tf +++ b/terraform/output.tf @@ -30,12 +30,14 @@ output "vm_tag_data" { } } -output "inventory_file" { - description = "Path to the generated Ansible inventory" - value = module.inventory.filename +module "inventory" { + source = "./modules/proxmox_ansible_inventory" + filename = "${abspath("${path.root}/..")}/ansible/inventory/inventory.yml" + instances = local.vm_created } -output "vm_data_file" { - description = "Path to the generated VM data file" - value = module.vm_data.filename -} +module "vm_data" { + source = "./modules/proxmox_vm_data" + filename = "${abspath("${path.root}/..")}/terraform/vm_data.yml" + instances = local.vm_created +} \ No newline at end of file