|
|
@ -22,10 +22,8 @@ version_added: "2.4"
|
|
|
|
short_description: Managed Azure Virtual Machine extension
|
|
|
|
short_description: Managed Azure Virtual Machine extension
|
|
|
|
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Create, update and delete Azure Virtual Machine Extension
|
|
|
|
- Create, update and delete Azure Virtual Machine Extension.
|
|
|
|
|
|
|
|
- Note that this module was called M(azure_rm_virtualmachine_extension) before Ansible 2.8. The usage did not change.
|
|
|
|
notes:
|
|
|
|
|
|
|
|
- This module was called C(azure_rm_virtualmachine_extension) before Ansible 2.8. The usage did not change.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
options:
|
|
|
|
options:
|
|
|
|
resource_group:
|
|
|
|
resource_group:
|
|
|
@ -34,19 +32,18 @@ options:
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
name:
|
|
|
|
name:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Name of the vm extension
|
|
|
|
- Name of the vm extension.
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
state:
|
|
|
|
state:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Assert the state of the vm extension. Use C(present) to create or update a vm extension and
|
|
|
|
- State of the vm extension. Use C(present) to create or update a vm extension and C(absent) to delete a vm extension.
|
|
|
|
C(absent) to delete a vm extension.
|
|
|
|
|
|
|
|
default: present
|
|
|
|
default: present
|
|
|
|
choices:
|
|
|
|
choices:
|
|
|
|
- absent
|
|
|
|
- absent
|
|
|
|
- present
|
|
|
|
- present
|
|
|
|
location:
|
|
|
|
location:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Valid azure location. Defaults to location of the resource group.
|
|
|
|
- Valid Azure location. Defaults to location of the resource group.
|
|
|
|
virtual_machine_name:
|
|
|
|
virtual_machine_name:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The name of the virtual machine where the extension should be create or updated.
|
|
|
|
- The name of the virtual machine where the extension should be create or updated.
|
|
|
@ -74,8 +71,8 @@ extends_documentation_fragment:
|
|
|
|
- azure
|
|
|
|
- azure
|
|
|
|
|
|
|
|
|
|
|
|
author:
|
|
|
|
author:
|
|
|
|
- "Sertac Ozercan (@sozercan)"
|
|
|
|
- Sertac Ozercan (@sozercan)
|
|
|
|
- "Julien Stroheker (@julienstroheker)"
|
|
|
|
- Julien Stroheker (@julienstroheker)
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
EXAMPLES = '''
|
|
|
|
EXAMPLES = '''
|
|
|
@ -102,13 +99,18 @@ EXAMPLES = '''
|
|
|
|
|
|
|
|
|
|
|
|
RETURN = '''
|
|
|
|
RETURN = '''
|
|
|
|
state:
|
|
|
|
state:
|
|
|
|
description: Current state of the vm extension
|
|
|
|
description:
|
|
|
|
|
|
|
|
- Current state of the vm extension.
|
|
|
|
returned: always
|
|
|
|
returned: always
|
|
|
|
type: dict
|
|
|
|
type: dict
|
|
|
|
|
|
|
|
sample: { "state":"Deleted" }
|
|
|
|
|
|
|
|
|
|
|
|
changed:
|
|
|
|
changed:
|
|
|
|
description: Whether or not the resource has changed
|
|
|
|
description:
|
|
|
|
|
|
|
|
- Whether or not the resource has changed.
|
|
|
|
returned: always
|
|
|
|
returned: always
|
|
|
|
type: bool
|
|
|
|
type: bool
|
|
|
|
|
|
|
|
sample: true
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
from ansible.module_utils.azure_rm_common import AzureRMModuleBase
|
|
|
|
from ansible.module_utils.azure_rm_common import AzureRMModuleBase
|
|
|
|