diff options
author | Fabrice Flore-Thébault <themroc@centsix.org> | 2018-01-17 20:49:50 +0100 |
---|---|---|
committer | Jordan Borean <jborean93@gmail.com> | 2018-01-18 05:49:50 +1000 |
commit | 5b52bfad6dd1f8fd6447557948ca2b42465863cf (patch) | |
tree | 14a5274b8fd6cedd79df89a5dc176c8cb6905af0 /contrib/inventory/azure_rm.py | |
parent | f9f6080630f1a50b42ae7d5313339a03e2ef69ca (diff) | |
download | ansible-5b52bfad6dd1f8fd6447557948ca2b42465863cf.tar.gz |
azure_rm inventory should add "ansible_connection: winrm" in host_vars for windows hosts - fixes #34689 (#34691)
* fix for https://github.com/ansible/ansible/issues/34689
azure_rm inventory should add "ansible_connection: winrm" in host_vars for windows hosts
* add ansible_connection: winrm - fix for https://github.com/ansible/ansible/issues/34689
Diffstat (limited to 'contrib/inventory/azure_rm.py')
-rwxr-xr-x | contrib/inventory/azure_rm.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/inventory/azure_rm.py b/contrib/inventory/azure_rm.py index d790a0a02f..a52fdec4ff 100755 --- a/contrib/inventory/azure_rm.py +++ b/contrib/inventory/azure_rm.py @@ -620,6 +620,7 @@ class AzureInventory(object): # Add windows details if machine.os_profile is not None and machine.os_profile.windows_configuration is not None: + host_vars['ansible_connection'] = 'winrm' host_vars['windows_auto_updates_enabled'] = \ machine.os_profile.windows_configuration.enable_automatic_updates host_vars['windows_timezone'] = machine.os_profile.windows_configuration.time_zone |