docker_container: do not send wrong host IP for duplicate ports (#1214)

* DRY.

* Port spec can be a list of port specs.

* Add changelog fragment.

* Add test.
This commit is contained in:
Felix Fontein
2025-11-26 07:29:30 +01:00
committed by GitHub
parent d2947476f7
commit 846fc8564b
3 changed files with 73 additions and 12 deletions
@@ -0,0 +1,3 @@
bugfixes:
- "docker_container - when the same port is mapped more than once for the same protocol without specifying an interface, a bug caused an invalid value to be passed for the interface
(https://github.com/ansible-collections/community.docker/issues/1213, https://github.com/ansible-collections/community.docker/pull/1214)."