-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest6.yml
More file actions
28 lines (27 loc) · 715 Bytes
/
test6.yml
File metadata and controls
28 lines (27 loc) · 715 Bytes
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
---
# This playbook create an Azure VM with public IP
# Change variables below to customize you VM deployment
- name: Create Azure VM
hosts: localhost
# conneciton: local
vars:
# resource_group: demo_vm0000
resource_group: MyAnsibleGroup
resource_group_secondary: demo_vm_1
vm_name: testvm
location: eastus
# roles:
# - Azure.azure_modules
tasks:
- name: Create VM
azure_rm_virtualmachine:
resource_group: "{{ resource_group }}"
name: "{{ vm_name }}"
vm_size: Standard_DS1_v2
admin_username: azureuser
admin_password: Password@123
image:
offer: UbuntuServer
publisher: Canonical
sku: 16.04-LTS
version: latest