First commit
This commit is contained in:
15
terraform/pihole/outputs.tf
Normal file
15
terraform/pihole/outputs.tf
Normal file
@@ -0,0 +1,15 @@
|
||||
locals {
|
||||
ansible_lines = [
|
||||
for name, config in var.vms_config :
|
||||
"${config.ip} ansible_user=ubuntu ansible_ssh_private_key_file=/home/ryuuji/.ssh/id_rsa ansible_ssh_common_args='-o StrictHostKeyChecking=no'"
|
||||
]
|
||||
}
|
||||
|
||||
output "ansible_inventory" {
|
||||
value = <<EOT
|
||||
[pihole]
|
||||
${join("\n", local.ansible_lines)}
|
||||
EOT
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user