1
0
Fork 0
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:
Hidetoshi Hirokawa 2016-08-05 02:43:30 +09:00 committed by Matt Davis
parent 14901b65d9
commit 595946b80e

View file

@ -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