From 8b711d9874350235288627505c889e6e83e0c6a7 Mon Sep 17 00:00:00 2001 From: Jared Hocutt Date: Thu, 5 Jul 2018 05:59:23 -0400 Subject: [PATCH] Fix examples in azure_rm_securitygroup (#42121) --- .../cloud/azure/azure_rm_securitygroup.py | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/lib/ansible/modules/cloud/azure/azure_rm_securitygroup.py b/lib/ansible/modules/cloud/azure/azure_rm_securitygroup.py index 8560902921..e28afa6b70 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_securitygroup.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_securitygroup.py @@ -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