mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Fix nsg cannot add rule with purge_rules false (#43699)
This commit is contained in:
committed by
Zim Kalinowski
parent
5088f7c926
commit
88a738b0ba
@@ -187,6 +187,30 @@
|
||||
- assert:
|
||||
that: not output.changed
|
||||
|
||||
- name: Add a single one group
|
||||
azure_rm_securitygroup:
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: "{{ secgroupname }}"
|
||||
tags:
|
||||
testing: testing
|
||||
delete: on-exit
|
||||
foo: bar
|
||||
rules:
|
||||
- name: DenySSH
|
||||
protocol: Tcp
|
||||
source_address_prefix:
|
||||
- 54.120.120.240
|
||||
destination_port_range: 22
|
||||
access: Deny
|
||||
priority: 102
|
||||
direction: Inbound
|
||||
register: output
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- output.changed
|
||||
- "{{ output.state.rules | length }} == 2"
|
||||
|
||||
- name: Delete all security groups
|
||||
azure_rm_securitygroup:
|
||||
resource_group: "{{ resource_group }}"
|
||||
|
||||
Reference in New Issue
Block a user