Skip to content
Snippets Groups Projects
Commit 95111786 authored by dvazar's avatar dvazar
Browse files

fixed: creation of an inventory template

parent f7dc73b8
No related branches found
No related tags found
No related merge requests found
{% 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] }}
{% else %}
{{ vm.virtualMachine.name }} ansible_ssh_host={{ vm.virtualMachine.network.privateIpAddresses[0] }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment