Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Commit 3edd24f

Browse files
authored
Add ansible host and user in inventory for Windows builds (#66)
`ansible_host` and `ansible_user` are needed when running test kitchen for against Windows machines.
1 parent a0431ed commit 3edd24f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/kitchen-ansible/util_inventory.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ def generate_instance_inventory(name, host, mygroup, instance_connection_option,
3030
temp_hash['ansible_winrm_server_cert_validation'] = 'ignore'
3131
temp_hash['ansible_winrm_transport'] = 'ssl'
3232
temp_hash['ansible_connection'] = 'winrm'
33+
temp_hash['ansible_host'] = temp_hash['ansible_ssh_host']
34+
temp_hash['ansible_user'] = temp_hash['ansible_ssh_user']
3335
end
3436
{ name => temp_hash }
3537
end

0 commit comments

Comments
 (0)