mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
delete subnet should be idempotent (#35037)
This commit is contained in:
parent
e9e85625aa
commit
7c201fc9bc
2 changed files with 12 additions and 1 deletions
|
@ -82,6 +82,17 @@
|
|||
virtual_network_name: My_Virtual_Network
|
||||
resource_group: "{{ resource_group }}"
|
||||
|
||||
- name: Remove subnet (idempotent)
|
||||
azure_rm_subnet:
|
||||
state: absent
|
||||
name: foobar
|
||||
virtual_network_name: My_Virtual_Network
|
||||
resource_group: "{{ resource_group }}"
|
||||
register: output
|
||||
|
||||
- assert:
|
||||
that: not output.changed
|
||||
|
||||
- name: Remove security group
|
||||
azure_rm_securitygroup:
|
||||
resource_group: "{{ resource_group }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue