forked from pierront/but3-iac
maj
This commit is contained in:
@@ -52,12 +52,9 @@ module "iam" {
|
||||
# Fichier template Ansible
|
||||
# ------------------------
|
||||
|
||||
data "template" "ansible_cfg" {
|
||||
template = file("${path.module}/../../template/ansible.cfg.tpl")
|
||||
|
||||
vars = {
|
||||
frontend_ip = module.compute.frontend_public_ip
|
||||
backend_ip = module.compute.internal_ips["backend"]
|
||||
db_ip = module.compute.internal_ips["database"]
|
||||
}
|
||||
data "local_file" "ansible_cfg" {
|
||||
filename = "${path.module}/ansible.cfg"
|
||||
content = templatefile("${path.module}/../../template/ansible.cfg.tpl", {
|
||||
remote_user = "raphael.hochlaf@gmail.com"
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user