mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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
This commit is contained in:
parent
f9f6080630
commit
5b52bfad6d
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue