summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhijeet Kasurde <akasurde@redhat.com>2020-08-28 00:13:11 +0530
committerGitHub <noreply@github.com>2020-08-27 13:43:11 -0500
commita253c93fd1c8ca230fb740cfa53deb6743a2f616 (patch)
tree63d1bb832298c83d045ea396d127fcb4dcf5f3ba
parent714cd2ad2eff7f003d728414afcb91591fad5d9a (diff)
downloadansible-a253c93fd1c8ca230fb740cfa53deb6743a2f616.tar.gz
[2.10] iptables: Add a note about ipv6-icmp (#71010)
ipv6-icmp and icmpv6 are valid protocols and adding note about it in protocol parameter. Fixes: #70905 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> (cherry picked from commit e139739ab36d7818840025022228b781a92f9bfd)
-rw-r--r--changelogs/fragments/70905_iptables_ipv6.yml2
-rw-r--r--lib/ansible/modules/iptables.py4
2 files changed, 4 insertions, 2 deletions
diff --git a/changelogs/fragments/70905_iptables_ipv6.yml b/changelogs/fragments/70905_iptables_ipv6.yml
new file mode 100644
index 0000000000..06425af1a5
--- /dev/null
+++ b/changelogs/fragments/70905_iptables_ipv6.yml
@@ -0,0 +1,2 @@
+minor_changes:
+- iptables - add a note about ipv6-icmp in protocol parameter (https://github.com/ansible/ansible/issues/70905).
diff --git a/lib/ansible/modules/iptables.py b/lib/ansible/modules/iptables.py
index 7ec22cfd88..01741c88fb 100644
--- a/lib/ansible/modules/iptables.py
+++ b/lib/ansible/modules/iptables.py
@@ -72,8 +72,8 @@ options:
protocol:
description:
- The protocol of the rule or of the packet to check.
- - The specified protocol can be one of C(tcp), C(udp), C(udplite), C(icmp), C(esp),
- C(ah), C(sctp) or the special keyword C(all), or it can be a numeric value,
+ - The specified protocol can be one of C(tcp), C(udp), C(udplite), C(icmp), C(ipv6-icmp) or C(icmpv6),
+ C(esp), C(ah), C(sctp) or the special keyword C(all), or it can be a numeric value,
representing one of these protocols or a different one.
- A protocol name from I(/etc/protocols) is also allowed.
- A C(!) argument before the protocol inverts the test.