This commit is contained in:
2025-12-03 16:21:37 +01:00
parent 91d297cb21
commit df23a17a7a

View File

@@ -53,7 +53,7 @@ module "iam" {
# ------------------------ # ------------------------
data "templatefile" "ansible_cfg" { data "templatefile" "ansible_cfg" {
template = file("${path.module}/ansible.tpl") template = file("../../template/ansible.cfg.tpl")
vars = { vars = {
frontend_ip = module.compute.frontend_public_ip frontend_ip = module.compute.frontend_public_ip
@@ -61,8 +61,3 @@ data "templatefile" "ansible_cfg" {
db_ip = module.compute.internal_ips["database"] db_ip = module.compute.internal_ips["database"]
} }
} }
resource "local_file" "ansible_file" {
filename = "${path.module}/ansible_inventory.ini"
content = data.templatefile.ansible_cfg.rendered
}