mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Renaming azure_rm_managed_disk for consistency (#54825)
This commit is contained in:
parent
c5f666907e
commit
69ca89858c
10 changed files with 57 additions and 48 deletions
|
@ -524,9 +524,9 @@ groupings:
|
||||||
- azure
|
- azure
|
||||||
azure_rm_loadbalancer_facts:
|
azure_rm_loadbalancer_facts:
|
||||||
- azure
|
- azure
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
- azure
|
- azure
|
||||||
azure_rm_managed_disk_facts:
|
azure_rm_manageddisk_facts:
|
||||||
- azure
|
- azure
|
||||||
azure_rm_mysqldatabase:
|
azure_rm_mysqldatabase:
|
||||||
- azure
|
- azure
|
||||||
|
|
1
lib/ansible/modules/cloud/azure/_azure_rm_managed_disk.py
Symbolic link
1
lib/ansible/modules/cloud/azure/_azure_rm_managed_disk.py
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
azure_rm_manageddisk.py
|
1
lib/ansible/modules/cloud/azure/_azure_rm_managed_disk_facts.py
Symbolic link
1
lib/ansible/modules/cloud/azure/_azure_rm_managed_disk_facts.py
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
azure_rm_manageddisk_facts.py
|
|
@ -15,7 +15,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: azure_rm_managed_disk
|
module: azure_rm_manageddisk
|
||||||
|
|
||||||
version_added: "2.4"
|
version_added: "2.4"
|
||||||
|
|
||||||
|
@ -24,6 +24,9 @@ short_description: Manage Azure Manage Disks
|
||||||
description:
|
description:
|
||||||
- Create, update and delete an Azure Managed Disk
|
- Create, update and delete an Azure Managed Disk
|
||||||
|
|
||||||
|
notes:
|
||||||
|
- This module was called C(azure_rm_managed_disk) before Ansible 2.8. The usage did not change.
|
||||||
|
|
||||||
options:
|
options:
|
||||||
resource_group:
|
resource_group:
|
||||||
description:
|
description:
|
||||||
|
@ -112,14 +115,14 @@ author:
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Create managed disk
|
- name: Create managed disk
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
name: mymanageddisk
|
name: mymanageddisk
|
||||||
location: eastus
|
location: eastus
|
||||||
resource_group: myResourceGroup
|
resource_group: myResourceGroup
|
||||||
disk_size_gb: 4
|
disk_size_gb: 4
|
||||||
|
|
||||||
- name: Create managed operating system disk from page blob
|
- name: Create managed operating system disk from page blob
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
name: mymanageddisk
|
name: mymanageddisk
|
||||||
location: eastus2
|
location: eastus2
|
||||||
resource_group: myResourceGroup
|
resource_group: myResourceGroup
|
||||||
|
@ -129,7 +132,7 @@ EXAMPLES = '''
|
||||||
storage_account_type: Premium_LRS
|
storage_account_type: Premium_LRS
|
||||||
|
|
||||||
- name: Mount the managed disk to VM
|
- name: Mount the managed disk to VM
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
name: mymanageddisk
|
name: mymanageddisk
|
||||||
location: eastus
|
location: eastus
|
||||||
resource_group: myResourceGroup
|
resource_group: myResourceGroup
|
||||||
|
@ -137,7 +140,7 @@ EXAMPLES = '''
|
||||||
managed_by: testvm001
|
managed_by: testvm001
|
||||||
|
|
||||||
- name: Unmount the managed disk to VM
|
- name: Unmount the managed disk to VM
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
name: mymanageddisk
|
name: mymanageddisk
|
||||||
location: eastus
|
location: eastus
|
||||||
resource_group: myResourceGroup
|
resource_group: myResourceGroup
|
||||||
|
@ -178,7 +181,7 @@ except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
# duplicated in azure_rm_managed_disk_facts
|
# duplicated in azure_rm_manageddisk_facts
|
||||||
def managed_disk_to_dict(managed_disk):
|
def managed_disk_to_dict(managed_disk):
|
||||||
create_data = managed_disk.creation_data
|
create_data = managed_disk.creation_data
|
||||||
return dict(
|
return dict(
|
|
@ -14,7 +14,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
||||||
|
|
||||||
DOCUMENTATION = r'''
|
DOCUMENTATION = r'''
|
||||||
---
|
---
|
||||||
module: azure_rm_managed_disk_facts
|
module: azure_rm_manageddisk_facts
|
||||||
|
|
||||||
version_added: "2.4"
|
version_added: "2.4"
|
||||||
|
|
||||||
|
@ -23,6 +23,9 @@ short_description: Get managed disk facts
|
||||||
description:
|
description:
|
||||||
- Get facts for a specific managed disk or all managed disks.
|
- Get facts for a specific managed disk or all managed disks.
|
||||||
|
|
||||||
|
notes:
|
||||||
|
- This module was called C(azure_rm_managed_disk_facts) before Ansible 2.8. The usage did not change.
|
||||||
|
|
||||||
options:
|
options:
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
|
@ -48,15 +51,15 @@ author:
|
||||||
|
|
||||||
EXAMPLES = r'''
|
EXAMPLES = r'''
|
||||||
- name: Get facts for one managed disk
|
- name: Get facts for one managed disk
|
||||||
azure_rm_managed_disk_facts:
|
azure_rm_manageddisk_facts:
|
||||||
name: Testing
|
name: Testing
|
||||||
resource_group: myResourceGroup
|
resource_group: myResourceGroup
|
||||||
|
|
||||||
- name: Get facts for all managed disks
|
- name: Get facts for all managed disks
|
||||||
azure_rm_managed_disk_facts:
|
azure_rm_manageddisk_facts:
|
||||||
|
|
||||||
- name: Get facts by tags
|
- name: Get facts by tags
|
||||||
azure_rm_managed_disk_facts:
|
azure_rm_manageddisk_facts:
|
||||||
tags:
|
tags:
|
||||||
- testing
|
- testing
|
||||||
'''
|
'''
|
||||||
|
@ -122,7 +125,7 @@ except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
# duplicated in azure_rm_managed_disk
|
# duplicated in azure_rm_manageddisk
|
||||||
def managed_disk_to_dict(managed_disk):
|
def managed_disk_to_dict(managed_disk):
|
||||||
create_data = managed_disk.creation_data
|
create_data = managed_disk.creation_data
|
||||||
return dict(
|
return dict(
|
|
@ -56,7 +56,7 @@
|
||||||
register: vm
|
register: vm
|
||||||
|
|
||||||
- name: Create new empty managed disk
|
- name: Create new empty managed disk
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "{{ empty_disk_name }}"
|
name: "{{ empty_disk_name }}"
|
||||||
storage_account_type: "Standard_LRS"
|
storage_account_type: "Standard_LRS"
|
||||||
|
@ -150,7 +150,7 @@
|
||||||
- not output.changed
|
- not output.changed
|
||||||
|
|
||||||
- name: Delete empty disk
|
- name: Delete empty disk
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "{{ empty_disk_name }}"
|
name: "{{ empty_disk_name }}"
|
||||||
state: absent
|
state: absent
|
||||||
|
|
|
@ -2,3 +2,4 @@ cloud/azure
|
||||||
shippable/azure/group3
|
shippable/azure/group3
|
||||||
destructive
|
destructive
|
||||||
disabled
|
disabled
|
||||||
|
azure_rm_manageddisk_facts
|
|
@ -5,7 +5,7 @@
|
||||||
run_once: yes
|
run_once: yes
|
||||||
|
|
||||||
- name: Clearing (if) previous disks were created
|
- name: Clearing (if) previous disks were created
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: absent
|
state: absent
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
- "md{{ rpfx }}1"
|
- "md{{ rpfx }}1"
|
||||||
|
|
||||||
- name: Create managed disk (Check Mode)
|
- name: Create managed disk (Check Mode)
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "md{{ rpfx }}1"
|
name: "md{{ rpfx }}1"
|
||||||
storage_account_type: "Standard_LRS"
|
storage_account_type: "Standard_LRS"
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
- output.state
|
- output.state
|
||||||
|
|
||||||
- name: Test invalid account name (should give error)
|
- name: Test invalid account name (should give error)
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "invalid_char$"
|
name: "invalid_char$"
|
||||||
disk_size_gb: 1
|
disk_size_gb: 1
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
assert: { that: "output['failed'] == True" }
|
assert: { that: "output['failed'] == True" }
|
||||||
|
|
||||||
- name: Create new managed disk succesfully
|
- name: Create new managed disk succesfully
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "md{{ rpfx }}1"
|
name: "md{{ rpfx }}1"
|
||||||
storage_account_type: "Standard_LRS"
|
storage_account_type: "Standard_LRS"
|
||||||
|
@ -66,7 +66,7 @@
|
||||||
- output.state.storage_account_type == "Standard_LRS"
|
- output.state.storage_account_type == "Standard_LRS"
|
||||||
|
|
||||||
- name: Create new managed disk with zone
|
- name: Create new managed disk with zone
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "md{{ rpfx }}3"
|
name: "md{{ rpfx }}3"
|
||||||
storage_account_type: "Standard_LRS"
|
storage_account_type: "Standard_LRS"
|
||||||
|
@ -84,7 +84,7 @@
|
||||||
- output.state.zone == ["1"]
|
- output.state.zone == ["1"]
|
||||||
|
|
||||||
- name: Change the operating system type of the managed disk to linux
|
- name: Change the operating system type of the managed disk to linux
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "md{{ rpfx }}1"
|
name: "md{{ rpfx }}1"
|
||||||
disk_size_gb: 1
|
disk_size_gb: 1
|
||||||
|
@ -101,7 +101,7 @@
|
||||||
- output.state.os_type == 'linux'
|
- output.state.os_type == 'linux'
|
||||||
|
|
||||||
- name: Create new managed disk with an os_type specified at creation
|
- name: Create new managed disk with an os_type specified at creation
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "md{{ rpfx }}os"
|
name: "md{{ rpfx }}os"
|
||||||
storage_account_type: "Standard_LRS"
|
storage_account_type: "Standard_LRS"
|
||||||
|
@ -116,13 +116,13 @@
|
||||||
- win.state.os_type == 'windows'
|
- win.state.os_type == 'windows'
|
||||||
|
|
||||||
- name: Clean up managed disk created with os_type
|
- name: Clean up managed disk created with os_type
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "md{{ rpfx }}os"
|
name: "md{{ rpfx }}os"
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
- name: Copy disk to a new managed disk
|
- name: Copy disk to a new managed disk
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "md{{ rpfx }}2"
|
name: "md{{ rpfx }}2"
|
||||||
create_option: "copy"
|
create_option: "copy"
|
||||||
|
@ -137,7 +137,7 @@
|
||||||
- copy.state.id is defined
|
- copy.state.id is defined
|
||||||
|
|
||||||
- name: Update a new disk without changes
|
- name: Update a new disk without changes
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "md{{ rpfx }}1"
|
name: "md{{ rpfx }}1"
|
||||||
storage_account_type: "Standard_LRS"
|
storage_account_type: "Standard_LRS"
|
||||||
|
@ -151,7 +151,7 @@
|
||||||
- output.state.id is defined
|
- output.state.id is defined
|
||||||
|
|
||||||
- name: Change storage account type to an invalid type
|
- name: Change storage account type to an invalid type
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "md{{ rpfx }}1"
|
name: "md{{ rpfx }}1"
|
||||||
storage_account_type: "PremiumL"
|
storage_account_type: "PremiumL"
|
||||||
|
@ -163,7 +163,7 @@
|
||||||
assert: { that: "output['failed'] == True" }
|
assert: { that: "output['failed'] == True" }
|
||||||
|
|
||||||
- name: Change disk size to incompatible size
|
- name: Change disk size to incompatible size
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "md{{ rpfx }}1"
|
name: "md{{ rpfx }}1"
|
||||||
disk_size_gb: 3000000
|
disk_size_gb: 3000000
|
||||||
|
@ -174,7 +174,7 @@
|
||||||
assert: { that: "output['failed'] == True" }
|
assert: { that: "output['failed'] == True" }
|
||||||
|
|
||||||
- name: Change disk to bigger size
|
- name: Change disk to bigger size
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "md{{ rpfx }}1"
|
name: "md{{ rpfx }}1"
|
||||||
disk_size_gb: 2
|
disk_size_gb: 2
|
||||||
|
@ -187,7 +187,7 @@
|
||||||
- output.state.disk_size_gb == 2
|
- output.state.disk_size_gb == 2
|
||||||
|
|
||||||
- name: Change disk to Standard SSD
|
- name: Change disk to Standard SSD
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "md{{ rpfx }}1"
|
name: "md{{ rpfx }}1"
|
||||||
storage_account_type: "StandardSSD_LRS"
|
storage_account_type: "StandardSSD_LRS"
|
||||||
|
@ -201,7 +201,7 @@
|
||||||
- output.state.storage_account_type == "StandardSSD_LRS"
|
- output.state.storage_account_type == "StandardSSD_LRS"
|
||||||
|
|
||||||
- name: Gather facts to one specific disk
|
- name: Gather facts to one specific disk
|
||||||
azure_rm_managed_disk_facts:
|
azure_rm_manageddisk_facts:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "md{{ rpfx }}1"
|
name: "md{{ rpfx }}1"
|
||||||
|
|
||||||
|
@ -211,7 +211,7 @@
|
||||||
- azure_managed_disk[0].storage_account_type == "StandardSSD_LRS"
|
- azure_managed_disk[0].storage_account_type == "StandardSSD_LRS"
|
||||||
|
|
||||||
- name: Change disk to Premium (SSD)
|
- name: Change disk to Premium (SSD)
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "md{{ rpfx }}1"
|
name: "md{{ rpfx }}1"
|
||||||
storage_account_type: "Premium_LRS"
|
storage_account_type: "Premium_LRS"
|
||||||
|
@ -225,7 +225,7 @@
|
||||||
- output.state.storage_account_type == "Premium_LRS"
|
- output.state.storage_account_type == "Premium_LRS"
|
||||||
|
|
||||||
- name: Update disk tags
|
- name: Update disk tags
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "md{{ rpfx }}1"
|
name: "md{{ rpfx }}1"
|
||||||
disk_size_gb: 2
|
disk_size_gb: 2
|
||||||
|
@ -242,7 +242,7 @@
|
||||||
- "output.state.tags.galaxy == 'no'"
|
- "output.state.tags.galaxy == 'no'"
|
||||||
|
|
||||||
- name: Update disk tags
|
- name: Update disk tags
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "md{{ rpfx }}1"
|
name: "md{{ rpfx }}1"
|
||||||
disk_size_gb: 2
|
disk_size_gb: 2
|
||||||
|
@ -259,7 +259,7 @@
|
||||||
- "output.state.tags.delete == 'never'"
|
- "output.state.tags.delete == 'never'"
|
||||||
|
|
||||||
- name: Gather facts to one specific disk
|
- name: Gather facts to one specific disk
|
||||||
azure_rm_managed_disk_facts:
|
azure_rm_manageddisk_facts:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "md{{ rpfx }}1"
|
name: "md{{ rpfx }}1"
|
||||||
|
|
||||||
|
@ -271,7 +271,7 @@
|
||||||
- "azure_managed_disk[0].os_type == 'linux'"
|
- "azure_managed_disk[0].os_type == 'linux'"
|
||||||
|
|
||||||
- name: Gather facts
|
- name: Gather facts
|
||||||
azure_rm_managed_disk_facts:
|
azure_rm_manageddisk_facts:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -284,7 +284,7 @@
|
||||||
with_dict: "{{ azure_managed_disk[0] }}"
|
with_dict: "{{ azure_managed_disk[0] }}"
|
||||||
|
|
||||||
- name: Create disk with facts return value
|
- name: Create disk with facts return value
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
location: "{{ parameter.location }}"
|
location: "{{ parameter.location }}"
|
||||||
name: "{{ parameter.name }}"
|
name: "{{ parameter.name }}"
|
||||||
|
@ -348,7 +348,7 @@
|
||||||
version: latest
|
version: latest
|
||||||
|
|
||||||
- name: Mount the disk to virtual machine (check mode)
|
- name: Mount the disk to virtual machine (check mode)
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "md{{ rpfx }}1"
|
name: "md{{ rpfx }}1"
|
||||||
disk_size_gb: 2
|
disk_size_gb: 2
|
||||||
|
@ -364,7 +364,7 @@
|
||||||
- not mounted.state.managed_by
|
- not mounted.state.managed_by
|
||||||
|
|
||||||
- name: Mount the disk to virtual machine
|
- name: Mount the disk to virtual machine
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "md{{ rpfx }}1"
|
name: "md{{ rpfx }}1"
|
||||||
disk_size_gb: 2
|
disk_size_gb: 2
|
||||||
|
@ -379,7 +379,7 @@
|
||||||
- "'tr{{ rpfx }}' in mounted.state.managed_by"
|
- "'tr{{ rpfx }}' in mounted.state.managed_by"
|
||||||
|
|
||||||
- name: Mount the disk to virtual machine (idempotent)
|
- name: Mount the disk to virtual machine (idempotent)
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "md{{ rpfx }}1"
|
name: "md{{ rpfx }}1"
|
||||||
disk_size_gb: 2
|
disk_size_gb: 2
|
||||||
|
@ -394,7 +394,7 @@
|
||||||
- "'tr{{ rpfx }}' in mounted.state.managed_by"
|
- "'tr{{ rpfx }}' in mounted.state.managed_by"
|
||||||
|
|
||||||
- name: Unmount the disk to virtual machine (check mode)
|
- name: Unmount the disk to virtual machine (check mode)
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "md{{ rpfx }}1"
|
name: "md{{ rpfx }}1"
|
||||||
disk_size_gb: 2
|
disk_size_gb: 2
|
||||||
|
@ -410,7 +410,7 @@
|
||||||
- mounted.changed
|
- mounted.changed
|
||||||
|
|
||||||
- name: Unmount the disk to virtual machine
|
- name: Unmount the disk to virtual machine
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "md{{ rpfx }}1"
|
name: "md{{ rpfx }}1"
|
||||||
disk_size_gb: 2
|
disk_size_gb: 2
|
||||||
|
@ -426,7 +426,7 @@
|
||||||
- not mounted.state.managed_by
|
- not mounted.state.managed_by
|
||||||
|
|
||||||
- name: Unmount the disk to virtual machine (idempotent)
|
- name: Unmount the disk to virtual machine (idempotent)
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "md{{ rpfx }}1"
|
name: "md{{ rpfx }}1"
|
||||||
managed_by: ''
|
managed_by: ''
|
||||||
|
@ -442,7 +442,7 @@
|
||||||
- not mounted.state.managed_by
|
- not mounted.state.managed_by
|
||||||
|
|
||||||
- name: Update disk size
|
- name: Update disk size
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "md{{ rpfx }}1"
|
name: "md{{ rpfx }}1"
|
||||||
disk_size_gb: 4
|
disk_size_gb: 4
|
||||||
|
@ -456,7 +456,7 @@
|
||||||
- output.state.disk_size_gb == 4
|
- output.state.disk_size_gb == 4
|
||||||
|
|
||||||
- name: Attach the disk to virtual machine again
|
- name: Attach the disk to virtual machine again
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "md{{ rpfx }}1"
|
name: "md{{ rpfx }}1"
|
||||||
disk_size_gb: 4
|
disk_size_gb: 4
|
||||||
|
@ -472,7 +472,7 @@
|
||||||
- "'tr{{ rpfx }}' in mounted.state.managed_by"
|
- "'tr{{ rpfx }}' in mounted.state.managed_by"
|
||||||
|
|
||||||
- name: Change disk size to incompatible size
|
- name: Change disk size to incompatible size
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "md{{ rpfx }}1"
|
name: "md{{ rpfx }}1"
|
||||||
state: absent
|
state: absent
|
||||||
|
@ -484,7 +484,7 @@
|
||||||
assert: { that: "output['failed'] == True" }
|
assert: { that: "output['failed'] == True" }
|
||||||
|
|
||||||
- name: Delete managed disk (Check Mode)
|
- name: Delete managed disk (Check Mode)
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "md{{ rpfx }}1"
|
name: "md{{ rpfx }}1"
|
||||||
state: absent
|
state: absent
|
||||||
|
@ -498,7 +498,7 @@
|
||||||
- output.state
|
- output.state
|
||||||
|
|
||||||
- name: Delete all managed disk
|
- name: Delete all managed disk
|
||||||
azure_rm_managed_disk:
|
azure_rm_manageddisk:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "md{{ rpfx }}{{ item }}"
|
name: "md{{ rpfx }}{{ item }}"
|
||||||
managed_by: ''
|
managed_by: ''
|
|
@ -85,7 +85,7 @@ lib/ansible/modules/cloud/amazon/s3_website.py E324
|
||||||
lib/ansible/modules/cloud/amazon/sts_assume_role.py E317
|
lib/ansible/modules/cloud/amazon/sts_assume_role.py E317
|
||||||
lib/ansible/modules/cloud/atomic/atomic_container.py E317
|
lib/ansible/modules/cloud/atomic/atomic_container.py E317
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_dnszone_facts.py E325
|
lib/ansible/modules/cloud/azure/azure_rm_dnszone_facts.py E325
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_managed_disk_facts.py E325
|
lib/ansible/modules/cloud/azure/azure_rm_manageddisk_facts.py E325
|
||||||
lib/ansible/modules/cloud/centurylink/clc_aa_policy.py E335
|
lib/ansible/modules/cloud/centurylink/clc_aa_policy.py E335
|
||||||
lib/ansible/modules/cloud/centurylink/clc_alert_policy.py E317
|
lib/ansible/modules/cloud/centurylink/clc_alert_policy.py E317
|
||||||
lib/ansible/modules/cloud/centurylink/clc_blueprint_package.py E335
|
lib/ansible/modules/cloud/centurylink/clc_blueprint_package.py E335
|
||||||
|
|
Loading…
Reference in a new issue