-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazue_multi_nic_vm.yml
57 lines (29 loc) · 912 Bytes
/
azue_multi_nic_vm.yml
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
- name: Create Azure VM
hosts: virtualmachines
connection: local
gather_facts: no
tasks:
- name: Create VM - 2 NICs
azure_rm_virtualmachine:
resource_group: "{{env_id}}-rg-{{resource_group}}"
name: "{{inventory_hostname}}"
vm_size: Standard_DS12_v2
availability_set: "{{env_id}}-availabilityset-{{role}}"
managed_disk_type: Standard_LRS
admin_username: localadmin
ssh_password_enabled: false
ssh_public_keys:
- path: /home/localadmin/.ssh/authorized_keys
key_data: "{{public_key}}"
network_interface_names:
- "{{inventory_hostname}}-nic-fe"
- "{{inventory_hostname}}-nic-be"
image:
offer: CentOS
publisher: OpenLogic
sku: '7.3'
version: latest
data_disks:
- lun: 0
disk_size_gb: 128
managed_disk_type: Premium_LRS