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
|
purge_rules: yes
|
||||||
rules:
|
rules:
|
||||||
- name: DenySSH
|
- name: DenySSH
|
||||||
protocol: TCP
|
protocol: Tcp
|
||||||
destination_port_range: 22
|
destination_port_range: 22
|
||||||
access: Deny
|
access: Deny
|
||||||
priority: 100
|
priority: 100
|
||||||
direction: Inbound
|
direction: Inbound
|
||||||
- name: 'AllowSSH'
|
- name: 'AllowSSH'
|
||||||
protocol: TCP
|
protocol: Tcp
|
||||||
source_address_prefix:
|
source_address_prefix:
|
||||||
- '174.109.158.0/24'
|
- '174.109.158.0/24'
|
||||||
- '174.109.159.0/24'
|
- '174.109.159.0/24'
|
||||||
|
@ -155,6 +155,16 @@ EXAMPLES = '''
|
||||||
access: Allow
|
access: Allow
|
||||||
priority: 101
|
priority: 101
|
||||||
direction: Inbound
|
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
|
# Update rules on existing security group
|
||||||
- azure_rm_securitygroup:
|
- azure_rm_securitygroup:
|
||||||
|
@ -162,13 +172,13 @@ EXAMPLES = '''
|
||||||
name: mysecgroup
|
name: mysecgroup
|
||||||
rules:
|
rules:
|
||||||
- name: DenySSH
|
- name: DenySSH
|
||||||
protocol: TCP
|
protocol: Tcp
|
||||||
destination_port_range: 22-23
|
destination_port_range: 22-23
|
||||||
access: Deny
|
access: Deny
|
||||||
priority: 100
|
priority: 100
|
||||||
direction: Inbound
|
direction: Inbound
|
||||||
- name: AllowSSHFromHome
|
- name: AllowSSHFromHome
|
||||||
protocol: TCP
|
protocol: Tcp
|
||||||
source_address_prefix: '174.109.158.0/24'
|
source_address_prefix: '174.109.158.0/24'
|
||||||
destination_port_range: 22-23
|
destination_port_range: 22-23
|
||||||
access: Allow
|
access: Allow
|
||||||
|
|
Loading…
Reference in a new issue