mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix examples in azure_rm_securitygroup (#42121)
This commit is contained in:
parent
75382814f0
commit
8b711d9874
1 changed files with 14 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue