mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
additional fixes to function app test
This commit is contained in:
parent
66b389a00d
commit
2ad7d79985
1 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
- name: Fix resource prefix
|
||||
set_fact:
|
||||
fixed_resource_prefix: "{{ resource_prefix | replace('-','x') }}"
|
||||
fixed_resource_prefix: "{{ (resource_prefix | replace('-','x'))[-22:] }}"
|
||||
|
||||
- name: create storage account for function apps
|
||||
azure_rm_storageaccount:
|
||||
|
@ -45,7 +45,7 @@
|
|||
- name: create a function with app settings
|
||||
azure_rm_functionapp:
|
||||
resource_group: '{{ resource_group }}'
|
||||
name: af{{ fixed_resource_prefix }}
|
||||
name: af{{ fixed_resource_prefix }}x
|
||||
storage_account: sa{{ fixed_resource_prefix }}
|
||||
app_settings:
|
||||
hello: world
|
||||
|
@ -59,7 +59,7 @@
|
|||
- name: change app settings
|
||||
azure_rm_functionapp:
|
||||
resource_group: '{{ resource_group }}'
|
||||
name: af{{ fixed_resource_prefix }}
|
||||
name: af{{ fixed_resource_prefix }}x
|
||||
storage_account: sa{{ fixed_resource_prefix }}
|
||||
app_settings:
|
||||
hello: world
|
||||
|
@ -74,7 +74,7 @@
|
|||
- name: delete the function app
|
||||
azure_rm_functionapp:
|
||||
resource_group: '{{ resource_group }}'
|
||||
name: af{{ fixed_resource_prefix }}
|
||||
name: af{{ fixed_resource_prefix }}x
|
||||
state: absent
|
||||
register: output
|
||||
|
||||
|
|
Loading…
Reference in a new issue