mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Fix examples in azure_rm_securitygroup (#42121)
This commit is contained in:
@@ -141,13 +141,13 @@ EXAMPLES = '''
|
||||
purge_rules: yes
|
||||
rules:
|
||||
- name: DenySSH
|
||||
protocol: TCP
|
||||
protocol: Tcp
|
||||
destination_port_range: 22
|
||||
access: Deny
|
||||
priority: 100
|
||||
direction: Inbound
|
||||
- name: 'AllowSSH'
|
||||
protocol: TCP
|
||||
protocol: Tcp
|
||||
source_address_prefix:
|
||||
- '174.109.158.0/24'
|
||||
- '174.109.159.0/24'
|
||||
@@ -155,6 +155,16 @@ EXAMPLES = '''
|
||||
access: Allow
|
||||
priority: 101
|
||||
direction: Inbound
|
||||
- name: 'AllowMultiplePorts'
|
||||
protocol: Tcp
|
||||
source_address_prefix:
|
||||
- '174.109.158.0/24'
|
||||
- '174.109.159.0/24'
|
||||
destination_port_range:
|
||||
- 80
|
||||
- 443
|
||||
access: Allow
|
||||
priority: 102
|
||||
|
||||
# Update rules on existing security group
|
||||
- azure_rm_securitygroup:
|
||||
@@ -162,13 +172,13 @@ EXAMPLES = '''
|
||||
name: mysecgroup
|
||||
rules:
|
||||
- name: DenySSH
|
||||
protocol: TCP
|
||||
protocol: Tcp
|
||||
destination_port_range: 22-23
|
||||
access: Deny
|
||||
priority: 100
|
||||
direction: Inbound
|
||||
- name: AllowSSHFromHome
|
||||
protocol: TCP
|
||||
protocol: Tcp
|
||||
source_address_prefix: '174.109.158.0/24'
|
||||
destination_port_range: 22-23
|
||||
access: Allow
|
||||
|
||||
Reference in New Issue
Block a user