2019-06-13 17:48:56 +02:00
|
|
|
- debug:
|
|
|
|
msg: "UID is {{ uid_short }}"
|
2019-05-14 21:06:07 +02:00
|
|
|
|
2019-06-13 17:48:56 +02:00
|
|
|
- name: SETUP | Create storage account
|
2019-05-14 21:06:07 +02:00
|
|
|
azure_rm_storageaccount:
|
2019-06-13 17:48:56 +02:00
|
|
|
resource_group: "{{ resource_group }}"
|
|
|
|
name: "{{ storage_account }}"
|
|
|
|
account_type: Standard_LRS
|
2019-05-14 21:06:07 +02:00
|
|
|
|
2019-06-13 17:48:56 +02:00
|
|
|
- name: SETUP | Create availability set
|
2019-05-14 21:06:07 +02:00
|
|
|
azure_rm_availabilityset:
|
2019-06-13 17:48:56 +02:00
|
|
|
name: "{{ availability_set }}"
|
2019-05-14 21:06:07 +02:00
|
|
|
resource_group: "{{ resource_group }}"
|
|
|
|
|
2019-06-13 17:48:56 +02:00
|
|
|
- name: SETUP | Create virtual network
|
2019-05-14 21:06:07 +02:00
|
|
|
azure_rm_virtualnetwork:
|
2019-06-13 17:48:56 +02:00
|
|
|
resource_group: "{{ resource_group }}"
|
|
|
|
name: "{{ network_name }}"
|
|
|
|
address_prefixes: "{{ network }}"
|
2019-05-14 21:06:07 +02:00
|
|
|
|
2019-06-13 17:48:56 +02:00
|
|
|
- name: SETUP | Create subnet
|
2019-05-14 21:06:07 +02:00
|
|
|
azure_rm_subnet:
|
2019-06-13 17:48:56 +02:00
|
|
|
resource_group: "{{ resource_group }}"
|
|
|
|
name: "{{ subnet_name }}"
|
|
|
|
address_prefix: "{{ subnet }}"
|
|
|
|
virtual_network: "{{ network_name }}"
|