feat: Swapped tofu init scripting for ansible scripting
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
---
|
||||
# Dynamic inventory: queries the Hetzner Cloud API directly (HCLOUD_TOKEN),
|
||||
# grouping hosts by the `role` label set on each hcloud_server resource in
|
||||
# infra/modules/<host>/main.tf (role = dev/prod/vpn). Nothing here reads
|
||||
# Terraform state - this always reflects whatever actually exists in Hetzner.
|
||||
plugin: hetzner.hcloud.hcloud
|
||||
token: "{{ lookup('env', 'HCLOUD_TOKEN') }}"
|
||||
connect_with: public_ipv4
|
||||
keyed_groups:
|
||||
- key: labels.role
|
||||
prefix: role
|
||||
separator: "_"
|
||||
Reference in New Issue
Block a user