chore(terraform): move template files into terraform/templates dir

This commit is contained in:
2026-08-20 17:09:26 +02:00
parent a49e565124
commit 31a05abb62
3 changed files with 2 additions and 2 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ resource "hcloud_server" "dokploy" {
image = var.hcloud_image image = var.hcloud_image
server_type = var.hcloud_server_type server_type = var.hcloud_server_type
location = var.hcloud_location location = var.hcloud_location
user_data = templatefile("${path.module}/user_data.tpl", { user_data = templatefile("${path.module}/templates/user_data.tpl", {
ssh_public_key = var.ssh_public_key ssh_public_key = var.ssh_public_key
}) })
firewall_ids = [hcloud_firewall.host.id] firewall_ids = [hcloud_firewall.host.id]
@@ -69,7 +69,7 @@ resource "cloudflare_dns_record" "a" {
# Write IP to Ansible inventory # Write IP to Ansible inventory
resource "local_file" "ansible_inventory" { resource "local_file" "ansible_inventory" {
content = templatefile("${path.module}/../ansible/inventory.tpl", { content = templatefile("${path.module}/templates/ansible_inventory.tpl", {
public_ip = local.public_ip public_ip = local.public_ip
}) })
filename = "${path.module}/../ansible/inventory.ini" filename = "${path.module}/../ansible/inventory.ini"