mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-06-30 07:50:43 +00:00
add application security group facts (#52629)
This commit is contained in:
parent
bc2bbff6bc
commit
28dadc9e18
2 changed files with 238 additions and 0 deletions
|
|
@ -350,6 +350,20 @@
|
|||
- output.changed
|
||||
- output.id != ''
|
||||
|
||||
- name: Get Application security group
|
||||
azure_rm_applicationsecuritygroup_facts:
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: "{{ applicationsecuritygroup_name1 }}"
|
||||
register: facts
|
||||
|
||||
- name: Assert facts
|
||||
assert:
|
||||
that:
|
||||
- facts['applicationsecuritygroups'] | length == 1
|
||||
- facts['applicationsecuritygroups'][0]['name'] != None
|
||||
- facts['applicationsecuritygroups'][0]['location'] != None
|
||||
- facts['applicationsecuritygroups'][0]['provisioning_state'] != None
|
||||
|
||||
- name: Create application security group (idempotent)
|
||||
azure_rm_applicationsecuritygroup:
|
||||
resource_group: "{{ resource_group }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue