Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#2529 from dvazar/bugfix/azurerm_ge…
Browse files Browse the repository at this point in the history
…nerate_inventory

Fixed inventory file creation
  • Loading branch information
woopstar authored Mar 26, 2018
2 parents d64839e + 9511178 commit d33a482
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

{% 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] }}
Expand Down

0 comments on commit d33a482

Please sign in to comment.