|
|
@ -18,11 +18,12 @@ module: azure_rm_availabilityset
|
|
|
|
|
|
|
|
|
|
|
|
version_added: "2.4"
|
|
|
|
version_added: "2.4"
|
|
|
|
|
|
|
|
|
|
|
|
short_description: Manage Azure availability set.
|
|
|
|
short_description: Manage Azure Availability Set
|
|
|
|
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Create, update and delete Azure availability set. An availability set cannot be updated, you will have to
|
|
|
|
- Create, update and delete Azure Availability Set.
|
|
|
|
recreate one instead. The only update operation will be for the tags.
|
|
|
|
- An availability set cannot be updated, you will have to recreate one instead.
|
|
|
|
|
|
|
|
- The only update operation will be for the tags.
|
|
|
|
|
|
|
|
|
|
|
|
options:
|
|
|
|
options:
|
|
|
|
resource_group:
|
|
|
|
resource_group:
|
|
|
@ -35,22 +36,25 @@ options:
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
state:
|
|
|
|
state:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Assert the state of the availability set. Use C(present) to create or update a availability set and
|
|
|
|
- Assert the state of the availability set.
|
|
|
|
C(absent) to delete a availability set.
|
|
|
|
- Use C(present) to create or update a availability set and C(absent) to delete a availability set.
|
|
|
|
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.
|
|
|
|
platform_update_domain_count:
|
|
|
|
platform_update_domain_count:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Update domains indicate groups of virtual machines and underlying physical hardware that can be rebooted at the same time. Default is 5.
|
|
|
|
- Update domains indicate groups of virtual machines and underlying physical hardware that can be rebooted at the same time.
|
|
|
|
|
|
|
|
type: int
|
|
|
|
default: 5
|
|
|
|
default: 5
|
|
|
|
platform_fault_domain_count:
|
|
|
|
platform_fault_domain_count:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Fault domains define the group of virtual machines that share a common power source and network switch. Should be between 1 and 3. Default is 3
|
|
|
|
- Fault domains define the group of virtual machines that share a common power source and network switch.
|
|
|
|
|
|
|
|
- Should be between C(1) and C(3).
|
|
|
|
|
|
|
|
type: int
|
|
|
|
default: 3
|
|
|
|
default: 3
|
|
|
|
sku:
|
|
|
|
sku:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
@ -93,13 +97,51 @@ EXAMPLES = '''
|
|
|
|
|
|
|
|
|
|
|
|
RETURN = '''
|
|
|
|
RETURN = '''
|
|
|
|
state:
|
|
|
|
state:
|
|
|
|
description: Current state of the availability set
|
|
|
|
description: Current state of the availability set.
|
|
|
|
returned: always
|
|
|
|
returned: always
|
|
|
|
|
|
|
|
type: complex
|
|
|
|
|
|
|
|
contains:
|
|
|
|
|
|
|
|
id:
|
|
|
|
|
|
|
|
description:
|
|
|
|
|
|
|
|
- Resource ID.
|
|
|
|
|
|
|
|
type: str
|
|
|
|
|
|
|
|
sample: "/subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/v-xisuRG/providers/Microsoft.Compute/availabilitySets/myavailabilityset2"
|
|
|
|
|
|
|
|
location:
|
|
|
|
|
|
|
|
description:
|
|
|
|
|
|
|
|
- Location where the resource lives.
|
|
|
|
|
|
|
|
type: str
|
|
|
|
|
|
|
|
sample: eastus
|
|
|
|
|
|
|
|
name:
|
|
|
|
|
|
|
|
description:
|
|
|
|
|
|
|
|
- Resource name.
|
|
|
|
|
|
|
|
type: str
|
|
|
|
|
|
|
|
sample: myavailabilityset2
|
|
|
|
|
|
|
|
platform_fault_domain_count:
|
|
|
|
|
|
|
|
description:
|
|
|
|
|
|
|
|
- Fault domains values.
|
|
|
|
|
|
|
|
type: int
|
|
|
|
|
|
|
|
sample: 2
|
|
|
|
|
|
|
|
platform_update_domain_count:
|
|
|
|
|
|
|
|
description:
|
|
|
|
|
|
|
|
- Update domains values.
|
|
|
|
|
|
|
|
type: int
|
|
|
|
|
|
|
|
sample: 5
|
|
|
|
|
|
|
|
sku:
|
|
|
|
|
|
|
|
description:
|
|
|
|
|
|
|
|
- The availability set supports managed disks.
|
|
|
|
|
|
|
|
type: str
|
|
|
|
|
|
|
|
sample: Aligned
|
|
|
|
|
|
|
|
tags:
|
|
|
|
|
|
|
|
description:
|
|
|
|
|
|
|
|
- Resource tags.
|
|
|
|
type: dict
|
|
|
|
type: dict
|
|
|
|
|
|
|
|
sample: {env: sandbox}
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|