From fa21e0c3dbeedc74e5806f202a093ff2e20a3673 Mon Sep 17 00:00:00 2001 From: Stefano Zilli Date: Fri, 5 Apr 2019 21:23:59 +0200 Subject: [PATCH] Fix example in iptables module (#54906) In the documentation the rule_num parameter works only in conjunction with `action` set to `insert` - fix the example with the rule_num parameter. +label: docsite_pr --- lib/ansible/modules/system/iptables.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/modules/system/iptables.py b/lib/ansible/modules/system/iptables.py index 7f6bbe7b06b..61a98fb421c 100644 --- a/lib/ansible/modules/system/iptables.py +++ b/lib/ansible/modules/system/iptables.py @@ -399,6 +399,7 @@ EXAMPLES = r''' protocol: tcp destination_port: 8080 jump: ACCEPT + action: insert rule_num: 5 - name: Set the policy for the INPUT chain to DROP