mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-07 17:51:29 -07:00
add azure app service plan facts (#44156)
* add app service plan facts * fix lint * fix missed tags * remove azure_ * fix test random
This commit is contained in:
parent
6a395d8e24
commit
aef5099695
3 changed files with 257 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
|||
set_fact:
|
||||
linux_plan_resource_group: "{{ resource_group_secondary }}"
|
||||
win_plan_name: "{{ (resource_prefix | replace('-','x'))[-8:] }}winplan"
|
||||
linux_plan_name: "{{ (resource_group_secondary | replace('-','x'))[-8:] }}linplan"
|
||||
linux_plan_name: "{{ (resource_prefix | replace('-','x'))[-8:] }}linplan"
|
||||
|
||||
- name: create a windows plan
|
||||
azure_rm_appserviceplan:
|
||||
|
@ -32,6 +32,18 @@
|
|||
- output.changed
|
||||
- output.id
|
||||
|
||||
- name: get app service plan by name
|
||||
azure_rm_appserviceplan_facts:
|
||||
resource_group: "{{ linux_plan_resource_group }}"
|
||||
name: "{{ linux_plan_name }}1"
|
||||
register: output
|
||||
|
||||
- name: assert is_linux is True
|
||||
assert:
|
||||
that:
|
||||
- output.appserviceplans | length == 1
|
||||
- output.appserviceplans[0].is_linux == True
|
||||
|
||||
- name: create linux app service plan idempotent
|
||||
azure_rm_appserviceplan:
|
||||
resource_group: "{{ linux_plan_resource_group }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue