Skip to content

Commit

Permalink
Add ansible host and user in inventory for Windows builds (#66)
Browse files Browse the repository at this point in the history
`ansible_host` and `ansible_user` are needed when running test kitchen for against Windows machines.
  • Loading branch information
szamfirov authored Aug 24, 2022
1 parent a0431ed commit 3edd24f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/kitchen-ansible/util_inventory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ def generate_instance_inventory(name, host, mygroup, instance_connection_option,
temp_hash['ansible_winrm_server_cert_validation'] = 'ignore'
temp_hash['ansible_winrm_transport'] = 'ssl'
temp_hash['ansible_connection'] = 'winrm'
temp_hash['ansible_host'] = temp_hash['ansible_ssh_host']
temp_hash['ansible_user'] = temp_hash['ansible_ssh_user']
end
{ name => temp_hash }
end

0 comments on commit 3edd24f

Please sign in to comment.