azure_rm inventory should add "ansible_connection: winrm" in host_vars for windows hosts #34689
Labels
affects_2.4
This issue/PR affects Ansible v2.4
azure
bug
This issue/PR relates to a bug.
c:inventory/contrib_script
cloud
inventory
Inventory category
support:community
This issue/PR relates to code supported by the Ansible community.
ISSUE TYPE
COMPONENT NAME
azure_rm inventory
ANSIBLE VERSION
CONFIGURATION
N/A
OS / ENVIRONMENT
Target hosts: Windows
SUMMARY
azure_rm inventory should add "ansible_connection: winrm" in host_vars for windows hosts
STEPS TO REPRODUCE
Run azure_rm (Microsoft Azure Resource Manager Inventory in AWX) to inventory a Windows host.
Look at the variables in the output.
EXPECTED RESULTS
A windows host should be reached with winrm.
I expect this variable to be present in the host variables:
ACTUAL RESULTS
The variable
ansible_connection: winrm
is missing.Ansible will use the standard SSH connexion mechanism, which will obviously fail.
We get information about the OS from Azure, though:
So when this information is present, azure_rm inventory should also set the variable
ansible_connection: winrm
.The text was updated successfully, but these errors were encountered: