# terraform/templates/inventory.yml.tftpl
# Auto-generated by Terraform - DO NOT EDIT

[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}"
%{ endfor ~}

[all:vars]
ansible_connection=ssh
ansible_user=clusteruser
ansible_ssh_pass=password

[test_server:vars]
ansible_ssh_common_args='-o ControlMaster=no -o ProxyCommand="ssh -i /root/.ssh/ansible_key -W %h:%p -q clusteruser@${bastion.default_ipv4_address}"'