docker_compose_v2: allow to specify inline compose definitions (#832)

* Allow to specify inline compose definitions.

* Remove comma that trips Python 2.7.

* Add tests.

* Add PyYAML as EE dependency.

* Be more explicit on PyYAML.
This commit is contained in:
Felix Fontein
2024-04-09 17:41:12 +02:00
committed by GitHub
parent 2925334a1a
commit 9e8c367c47
7 changed files with 374 additions and 19 deletions
@@ -0,0 +1,8 @@
minor_changes:
- "docker_compose_v2* modules - allow to provide an inline definition of the compose content
instead of having to provide a ``project_src`` directory with the compose file written into it
(https://github.com/ansible-collections/community.docker/issues/829, https://github.com/ansible-collections/community.docker/pull/832)."
- "The EE requirements now include PyYAML, since the ``docker_compose_v2*`` modules depend on it
when the ``definition`` option is used. This should not have a noticable effect on generated EEs
since ansible-core itself depends on PyYAML as well, and ansible-builder explicitly ignores this dependency
(https://github.com/ansible-collections/community.docker/pull/832)."