mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
docker_container: fix various idempotency problems and non-working options (#45905)
* Sorting args. * Doing comparisons of options with container parameters in a more context-sensitive way. This prevents unnecessary restarts, or missing restarts (f.ex. if parameters are removed from ``cmd``). * Make blkio_weight work. * Fix cap_drop idempotency problem. * Making groups idempotent if it contains integers. * Make cpuset_mems work. * Make dns_opts work. * Fixing log_opts: docker expects string values, returns error for integer. * Adding tests from felixfontein/ansible-docker_container-test#2. * Make uts work. * Adding changelog entry. * Forgot option security_opts. * Fixing typo. * Explain strict set(dict) comparison a bit more. * Improving idempotency tests. * Making dns_servers a list, since the ordering is relevant. * Making dns_search_domains a list, since the ordering is relevant. * Improving dns_search_domains/dns_servers. * Fixing entrypoint test. * Making sure options are only supported for correct docker-py versions.
This commit is contained in:
committed by
John R Barker
parent
0b801a0595
commit
7caf70db42
7
changelogs/fragments/docker_container-idempotency.yaml
Normal file
7
changelogs/fragments/docker_container-idempotency.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
bugfixes:
|
||||
- "docker_container - Makes ``blkio_weight``, ``cpuset_mems``, ``dns_opts`` and ``uts`` options actually work."
|
||||
- "docker_container - Fix idempotency problems with ``cap_drop`` and ``groups`` (when numeric group IDs were used)."
|
||||
- "docker_container - Fix type conversion errors for ``log_options``."
|
||||
- "docker_container - Fixing various comparison/idempotency problems related to wrong comparisons.
|
||||
In particular, comparisons for ``command`` and ``entrypoint`` (both lists) no longer ignore missing
|
||||
elements during idempotency checks."
|
||||
Reference in New Issue
Block a user