mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
add application security group facts (#52629)
This commit is contained in:
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user