diff --git a/terraform/environments/dev/main.tf b/terraform/environments/dev/main.tf index 0d3b6f4..1ad2696 100644 --- a/terraform/environments/dev/main.tf +++ b/terraform/environments/dev/main.tf @@ -52,8 +52,8 @@ module "iam" { # Fichier template Ansible # ------------------------ -data "templatefile" "ansible_cfg" { - template = file("../../template/ansible.cfg.tpl") +data "template" "ansible_cfg" { + template = file("${path.module}/../../template/ansible.cfg.tpl") vars = { frontend_ip = module.compute.frontend_public_ip