From 215632d5659e45ab6fb10eeb43eede1b7c941e30 Mon Sep 17 00:00:00 2001 From: tksarah Date: Sun, 20 Dec 2015 10:15:01 +0000 Subject: [PATCH 1/2] Edit azure.py --- cloud/azure/azure.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/cloud/azure/azure.py b/cloud/azure/azure.py index 01a6240cf87..c4930b99789 100644 --- a/cloud/azure/azure.py +++ b/cloud/azure/azure.py @@ -110,13 +110,6 @@ options: required: false default: 'present' aliases: [] - reset_pass_atlogon: - description: - - Reset the admin password on first logon for windows hosts - required: false - default: "no" - version_added: "2.0" - choices: [ "yes", "no" ] auto_updates: description: - Enable Auto Updates on Windows Machines @@ -369,8 +362,7 @@ def create_virtual_machine(module, azure): vm_config = LinuxConfigurationSet(hostname, user, password, disable_ssh_password_authentication) else: #Create Windows Config - vm_config = WindowsConfigurationSet(hostname, password, module.params.get('reset_pass_atlogon'),\ - module.params.get('auto_updates'), None, user) + vm_config = WindowsConfigurationSet(hostname, password, module.params.get('auto_updates'), None, user) vm_config.domain_join = None if module.params.get('enable_winrm'): listener = Listener('Http') @@ -541,7 +533,6 @@ def main(): wait=dict(type='bool', default=False), wait_timeout=dict(default=600), wait_timeout_redirects=dict(default=300), - reset_pass_atlogon=dict(type='bool', default=False), auto_updates=dict(type='bool', default=False), enable_winrm=dict(type='bool', default=True), ) From e022b7418ec36097771a72ffd9c9be620f477df3 Mon Sep 17 00:00:00 2001 From: tksarah Date: Sun, 20 Dec 2015 11:10:39 +0000 Subject: [PATCH 2/2] Edit azure.py --- cloud/azure/azure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/azure/azure.py b/cloud/azure/azure.py index c4930b99789..681a53b9efa 100644 --- a/cloud/azure/azure.py +++ b/cloud/azure/azure.py @@ -362,7 +362,7 @@ def create_virtual_machine(module, azure): vm_config = LinuxConfigurationSet(hostname, user, password, disable_ssh_password_authentication) else: #Create Windows Config - vm_config = WindowsConfigurationSet(hostname, password, module.params.get('auto_updates'), None, user) + vm_config = WindowsConfigurationSet(hostname, password, None, module.params.get('auto_updates'), None, user) vm_config.domain_join = None if module.params.get('enable_winrm'): listener = Listener('Http')