add playbook

This commit is contained in:
Benedikt Penner
2026-03-14 20:43:35 +01:00
parent 6d479e5934
commit 6820ba29c3
7 changed files with 76 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
# terraform/templates/inventory.yml.tftpl
# Auto-generated by Terraform - DO NOT EDIT
all:
children:
bastion:
hosts:
bastion:
ansible_host: "${bastion.default_ipv4_address}"
ansible_user: clusteruser
test_server:
hosts:
%{ for idx, server in galera_servers ~}
${server.name}:
ansible_host: "${server.default_ipv4_address}"
ansible_user: clusteruser
ansible_ssh_common_args: "-o ProxyJump=clusteruser@${bastion.default_ipv4_address}"
%{ endfor ~}