mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix the security rules name duplication of azure_rm_common. (#16897)
This commit is contained in:
parent
14901b65d9
commit
595946b80e
1 changed files with 3 additions and 3 deletions
|
@ -532,12 +532,12 @@ class AzureRMModuleBase(object):
|
|||
]
|
||||
parameters.location = location
|
||||
else:
|
||||
# for windows add inbound RDP rules
|
||||
# for windows add inbound RDP and WinRM rules
|
||||
parameters.security_rules = [
|
||||
SecurityRule('Tcp', '*', '*', 'Allow', 'Inbound', description='Allow RDP port 3389',
|
||||
source_port_range='*', destination_port_range='3389', priority=100, name='RDP01'),
|
||||
SecurityRule('Tcp', '*', '*', 'Allow', 'Inbound', description='Allow RDP port 5986',
|
||||
source_port_range='*', destination_port_range='5986', priority=101, name='RDP01'),
|
||||
SecurityRule('Tcp', '*', '*', 'Allow', 'Inbound', description='Allow WinRM HTTPS port 5986',
|
||||
source_port_range='*', destination_port_range='5986', priority=101, name='WinRM01'),
|
||||
]
|
||||
else:
|
||||
# Open custom ports
|
||||
|
|
Loading…
Reference in a new issue