From 9d3b479faf40fed58a26e6bf41641166dd70d2c9 Mon Sep 17 00:00:00 2001 From: Dmitrii Shuvar Date: Fri, 17 Aug 2018 21:14:30 +0300 Subject: [PATCH] Update docs iptables.py (#41245) * Update iptables.py added to documentation the required variable 'protocol' for variable destination_port. * Update iptables.py --- lib/ansible/modules/system/iptables.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/system/iptables.py b/lib/ansible/modules/system/iptables.py index e645bea36e..66f29ce452 100644 --- a/lib/ansible/modules/system/iptables.py +++ b/lib/ansible/modules/system/iptables.py @@ -178,11 +178,13 @@ options: greater than the second one they will be swapped. destination_port: description: - - Destination port or port range specification. This can either be + - "Destination port or port range specification. This can either be a service name or a port number. An inclusive range can also be specified, using the format first:last. If the first port is omitted, '0' is assumed; if the last is omitted, '65535' is assumed. If the first port is greater than the second one they will be swapped. + This is only valid if the rule also specifies one of the following + protocols: tcp, udp, dccp or sctp." to_ports: description: - "This specifies a destination port or range of ports to use: without