mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Fix the security rules name duplication of azure_rm_common. (#16897)
This commit is contained in:
committed by
Matt Davis
parent
14901b65d9
commit
595946b80e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user