From df23a17a7ac39d6aa53401695cd4cfdf5d226831 Mon Sep 17 00:00:00 2001 From: raphael Date: Wed, 3 Dec 2025 16:21:37 +0100 Subject: [PATCH] d --- terraform/environments/dev/main.tf | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/terraform/environments/dev/main.tf b/terraform/environments/dev/main.tf index 21324b9..0d3b6f4 100644 --- a/terraform/environments/dev/main.tf +++ b/terraform/environments/dev/main.tf @@ -53,7 +53,7 @@ module "iam" { # ------------------------ data "templatefile" "ansible_cfg" { - template = file("${path.module}/ansible.tpl") + template = file("../../template/ansible.cfg.tpl") vars = { frontend_ip = module.compute.frontend_public_ip @@ -61,8 +61,3 @@ data "templatefile" "ansible_cfg" { db_ip = module.compute.internal_ips["database"] } } - -resource "local_file" "ansible_file" { - filename = "${path.module}/ansible_inventory.ini" - content = data.templatefile.ansible_cfg.rendered -}