-
Notifications
You must be signed in to change notification settings - Fork 0
/
~t
32 lines (26 loc) · 769 Bytes
/
~t
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
- name: Create infra
hosts: localhost
gather_facts: False
tasks:
- name: Create resource group
azure_rm_resourcegroup:
name: foobar
location: westeurope
tags:
team: myteam
tier: mytier
register: reg_rg
#
# after this task the tags *do* exist on the Resource Group
#
- name: Deploy Docker registry
azure_rm_deployment:
deployment_name: registry
resource_group_name: '{{ reg_rg.state.name }}'
location: '{{ reg_rg.state.location }}'
template: "{{ lookup('file', './azuredeploy.json') }}"
parameters: "{{ lookup('file', './azuredeploy.parameters.json') }}"
wait_for_deployment_completion: False
#
# after this task they *don't*
#