8 lines
276 B
Terraform
8 lines
276 B
Terraform
|
|
resource "local_file" "ansible_inventory" {
|
||
|
|
content = templatefile("${path.module}/templates/inventory.yml.tftpl", {
|
||
|
|
galera_servers = proxmox_vm_qemu.galera
|
||
|
|
bastion = proxmox_vm_qemu.jumphost
|
||
|
|
})
|
||
|
|
filename = "${path.module}/../inventory/terraform_hosts.yml"
|
||
|
|
}
|