From 05dcf8ca20631af43f954ed2580ebb3465420356 Mon Sep 17 00:00:00 2001 From: Benedikt Penner Date: Sat, 14 Mar 2026 22:17:49 +0100 Subject: [PATCH] Adapted proxycommand --- .../terraform/templates/inventory.yml.tftpl | 30 ++++++++++--------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/glusterfs/terraform/templates/inventory.yml.tftpl b/glusterfs/terraform/templates/inventory.yml.tftpl index ea84482..79c9733 100644 --- a/glusterfs/terraform/templates/inventory.yml.tftpl +++ b/glusterfs/terraform/templates/inventory.yml.tftpl @@ -1,17 +1,19 @@ # terraform/templates/inventory.yml.tftpl # Auto-generated by Terraform - DO NOT EDIT -all: - children: - bastion: - hosts: - ${bastion.name}: - ansible_host: "${bastion.default_ipv4_address}" - ansible_user: clusteruser - test_server: - hosts: + +[all:vars] +ansible_connection=ssh +ansible_user=clusteruser +ansible_ssh_pass=password + +[bastion] +${bastion.name} ansible_host: "${bastion.default_ipv4_address}" + + +[test_server] %{ 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 ~} \ No newline at end of file +${server.name} ansible_host: "${server.default_ipv4_address}" +%{ endfor ~} + +[test_server:vars] +ansible_ssh_common_args='-o ProxyCommand="ssh -W %h:%p -q clusteruser@${bastion.default_ipv4_address}"' \ No newline at end of file