mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Resolving differences in core modules post-merge
This commit is contained in:
parent
95d59b61eb
commit
8afa090417
115 changed files with 2651 additions and 17913 deletions
|
@ -38,12 +38,12 @@ options:
|
|||
default: null
|
||||
subscription_id:
|
||||
description:
|
||||
- azure subscription id. Overrides the AZURE_SUBSCRIPTION_ID environement variable.
|
||||
- azure subscription id. Overrides the AZURE_SUBSCRIPTION_ID environment variable.
|
||||
required: false
|
||||
default: null
|
||||
management_cert_path:
|
||||
description:
|
||||
- path to an azure management certificate associated with the subscription id. Overrides the AZURE_CERT_PATH environement variable.
|
||||
- path to an azure management certificate associated with the subscription id. Overrides the AZURE_CERT_PATH environment variable.
|
||||
required: false
|
||||
default: null
|
||||
storage_account:
|
||||
|
@ -114,13 +114,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
|
||||
|
@ -258,7 +251,7 @@ AZURE_ROLE_SIZES = ['ExtraSmall',
|
|||
'Standard_DS14',
|
||||
'Standard_G1',
|
||||
'Standard_G2',
|
||||
'Sandard_G3',
|
||||
'Standard_G3',
|
||||
'Standard_G4',
|
||||
'Standard_G5']
|
||||
|
||||
|
@ -516,7 +509,7 @@ def terminate_virtual_machine(module, azure):
|
|||
|
||||
|
||||
def get_azure_creds(module):
|
||||
# Check modul args for credentials, then check environment vars
|
||||
# Check module args for credentials, then check environment vars
|
||||
subscription_id = module.params.get('subscription_id')
|
||||
if not subscription_id:
|
||||
subscription_id = os.environ.get('AZURE_SUBSCRIPTION_ID', None)
|
||||
|
@ -553,7 +546,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),
|
||||
)
|
||||
|
|
|
@ -264,17 +264,17 @@ class AzureRMPublicIPAddress(AzureRMModuleBase):
|
|||
def create_or_update_pip(self, pip):
|
||||
try:
|
||||
poller = self.network_client.public_ip_addresses.create_or_update(self.resource_group, self.name, pip)
|
||||
pip = self.get_poller_result(poller)
|
||||
except Exception as exc:
|
||||
self.fail("Error creating or updating {0} - {1}".format(self.name, str(exc)))
|
||||
pip = self.get_poller_result(poller)
|
||||
return pip_to_dict(pip)
|
||||
|
||||
def delete_pip(self):
|
||||
try:
|
||||
poller = self.network_client.public_ip_addresses.delete(self.resource_group, self.name)
|
||||
self.get_poller_result(poller)
|
||||
except Exception as exc:
|
||||
self.fail("Error deleting {0} - {1}".format(self.name, str(exc)))
|
||||
self.get_poller_result(poller)
|
||||
# Delete returns nada. If we get here, assume that all is well.
|
||||
self.results['state']['status'] = 'Deleted'
|
||||
return True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue