-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloop_functionapp_task.yml
39 lines (34 loc) · 996 Bytes
/
loop_functionapp_task.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
- name: create a function with app settings
azure_rm_functionapp:
resource_group: '{{ resource_group }}'
name: af{{ fixed_resource_prefix }}x
storage_account: sa{{ fixed_resource_prefix }}
app_settings:
hello: world
things: more stuff
register: output
- name: assert the function with app settings was created
assert:
that: output.changed
- name: change app settings
azure_rm_functionapp:
resource_group: '{{ resource_group }}'
name: af{{ fixed_resource_prefix }}x
storage_account: sa{{ fixed_resource_prefix }}
app_settings:
hello: world
things: more stuff
another: one
register: output
- name: assert the function was changed
assert:
that: output.changed
- name: delete the function app
azure_rm_functionapp:
resource_group: '{{ resource_group }}'
name: af{{ fixed_resource_prefix }}x
state: absent
register: output
- name: assert the function was deleted
assert:
that: output.changed