Skip to content

Commit fea2fe7

Browse files
committed
Support managed_disk_type
Add support for specifying managed_disk_type. This is a prerequisite for supporting snapshots. fixes #99
1 parent 1572d52 commit fea2fe7

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bugfixes:
2+
- Adding managed_disk_type as possible option in role azure_virtual_machine_with_public_ip

roles/azure_virtual_machine_with_public_ip/meta/argument_specs.yml

+14
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,20 @@ argument_specs:
7070
- The image used to build the VM. For custom images, the name of the image. To narrow the search to a specific resource group, a dict with the keys name and resource_group.
7171
- For Marketplace images, a dict with the keys publisher, offer, sku, and version.
7272
- Set O(version=latest) to get the most recent version of a given image.
73+
managed_disk_type:
74+
type: "str"
75+
description:
76+
- Managed OS disk type.
77+
- Create OS disk with managed disk if defined.
78+
- If not defined, the OS disk will be created with virtual hard disk (VHD).
79+
choices:
80+
- "Standard_LRS"
81+
- "StandardSSD_LRS"
82+
- "StandardSSD_ZRS"
83+
- "Premium_LRS"
84+
- "Premium_ZRS"
85+
- "UltraSSD_LRS"
86+
required: false
7387
ssh_pw_enabled:
7488
description: Enable/disable SSH passwords.
7589
choices: ['yes', 'no']

roles/azure_virtual_machine_with_public_ip/tasks/create.yml

+1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@
131131
vm_size: "{{ azure_virtual_machine_with_public_ip_vm.size | default(omit) }}"
132132
network_interfaces: "{{ azure_virtual_machine_with_public_ip_vm.network_interfaces | default(vm_name) }}"
133133
os_type: "{{ azure_virtual_machine_with_public_ip_vm.os | default(omit) }}"
134+
managed_disk_type: "{{ azure_virtual_machine_with_public_ip_vm.managed_disk_type | default(omit) }}"
134135
availability_set: "{{ azure_virtual_machine_with_public_ip_availability_set.name | default(omit) }}"
135136
image: "{{ azure_virtual_machine_with_public_ip_vm.image | default(omit) }}"
136137
admin_username: "{{ azure_virtual_machine_with_public_ip_vm.admin_username | default(omit) }}"

0 commit comments

Comments
 (0)