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 -}