summaryrefslogtreecommitdiff
path: root/test/integration/targets/azure_rm_virtualmachine/tasks/setup.yml
blob: f053cac03d80eaeabda61d65c4663c1878b4a8ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
- debug:
    msg: "UID is {{ uid_short }}"

- name: SETUP | Create storage account
  azure_rm_storageaccount:
    resource_group: "{{ resource_group }}"
    name: "{{ storage_account }}"
    account_type: Standard_LRS

- name: SETUP | Create availability set
  azure_rm_availabilityset:
    name: "{{ availability_set }}"
    resource_group: "{{ resource_group }}"

- name: SETUP | Create virtual network
  azure_rm_virtualnetwork:
    resource_group: "{{ resource_group }}"
    name: "{{ network_name }}"
    address_prefixes: "{{ network }}"

- name: SETUP | Create subnet
  azure_rm_subnet:
    resource_group: "{{ resource_group }}"
    name: "{{ subnet_name }}"
    address_prefix: "{{ subnet }}"
    virtual_network: "{{ network_name }}"