add playbook
This commit is contained in:
17
glusterfs/terraform/templates/inventory.yml.tftpl
Normal file
17
glusterfs/terraform/templates/inventory.yml.tftpl
Normal 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 ~}
|
||||
Reference in New Issue
Block a user