mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-07-29 11:55:04 +00:00
docker_compose_v2: use --yes when available instead of -y (#1060)
* Use --yes if available. * Add smoke test.
This commit is contained in:
@@ -84,6 +84,13 @@
|
||||
state: present
|
||||
register: present_3
|
||||
|
||||
- name: Present with --yes
|
||||
docker_compose_v2:
|
||||
project_src: '{{ project_src }}'
|
||||
state: present
|
||||
assume_yes: true
|
||||
when: docker_compose_version is version('2.32.0', '>=')
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- present_1_check is changed
|
||||
|
||||
Reference in New Issue
Block a user