-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy_arm_template.yml
30 lines (29 loc) · 1018 Bytes
/
deploy_arm_template.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
---
- name: Deploy ARM Template
hosts: localhost
vars_prompt:
- name: template_file_path
prompt: The path to the template
private: false
- name: parameters_file_path
prompt: The path to the parameters file
private: false
- name: deployment_name
prompt: The name for the deployment
private: false
- name: resource_group_name
prompt: The resource group for the resources
private: false
- name: location
prompt: The location of the resource group itself
private: false
tasks:
- name: Deploy {{ deployment_name }} to {{ resource_group_name }} {{ location }}
azure.azcollection.azure_rm_deployment:
state: present
deployment_mode: incremental
deployment_name: "{{ deployment_name }}"
resource_group_name: "{{ resource_group_name }}"
location: "{{ location }}"
parameters: "{{ lookup('file', parameters_file_path) }}"
template: "{{ lookup('file', template_file_path) }}"