fixed: creation of an inventory template
This commit is contained in:
parent
f7dc73b830
commit
9511178666
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
{% for vm in vm_ip_list %}
|
{% for vm in vm_ip_list %}
|
||||||
{% if not use_bastion or vm.virtualMachinename == 'bastion' %}
|
{% if not use_bastion or vm.virtualMachine.name == 'bastion' %}
|
||||||
{{ vm.virtualMachine.name }} ansible_ssh_host={{ vm.virtualMachine.network.publicIpAddresses[0].ipAddress }} ip={{ vm.virtualMachine.network.privateIpAddresses[0] }}
|
{{ vm.virtualMachine.name }} ansible_ssh_host={{ vm.virtualMachine.network.publicIpAddresses[0].ipAddress }} ip={{ vm.virtualMachine.network.privateIpAddresses[0] }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ vm.virtualMachine.name }} ansible_ssh_host={{ vm.virtualMachine.network.privateIpAddresses[0] }}
|
{{ vm.virtualMachine.name }} ansible_ssh_host={{ vm.virtualMachine.network.privateIpAddresses[0] }}
|
||||||
|
|
Loading…
Reference in a new issue