forked from pierront/but3-iac
d
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user