Skip to content

Commit

Permalink
Switch default to true.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Dec 14, 2024
1 parent 0be7afc commit 683eb14
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions changelogs/fragments/1011-docker_compose_v2-build-changed.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
minor_changes:
- "docker_compose_v2 - add ``ignore_build_events`` option (default value ``false``) which allows to ignore build events for change detection.
This can be useful if ``build=always`` is set, to avoid having a changed status if the image was rebuilt, but the containers using it were not
restarted since the image did not change
- "docker_compose_v2 - add ``ignore_build_events`` option (default value ``true``) which allows to (not) ignore build events for change detection
(https://github.com/ansible-collections/community.docker/issues/1005, https://github.com/ansible-collections/community.docker/issues/pull/1011)."
bugfixes:
- "docker_compose_v2 - when using Compose 2.31.0 or newer, revert to the old behavior that image rebuilds, for example if ``rebuild=always``, only
result in ``changed`` if a container has been restarted
(https://github.com/ansible-collections/community.docker/issues/1005, https://github.com/ansible-collections/community.docker/issues/pull/1011)."
4 changes: 2 additions & 2 deletions plugins/modules/docker_compose_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@
- If O(state=present) and O(ignore_build_events=true) and O(build=always), a rebuild that does
not trigger a container restart no longer results in RV(ignore:changed=true).
- Note that Docker Compose 2.31.0 is the first Compose 2.x version to emit build events.
For older versions, the behavior is always as if O(ignore_build_events=false).
For older versions, the behavior is always as if O(ignore_build_events=true).
type: bool
default: false
default: true
version_added: 4.2.0
recreate:
description:
Expand Down

0 comments on commit 683eb14

Please sign in to comment.