We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The new docker_compose_v2 doesn't allow Docker compose files to be named compose.yaml or compose.yml
community.docker.docker_compose_v2
ansible [core 2.16.1] config file = None configured module search path = ['/Users/sebastian/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/homebrew/Cellar/ansible/9.1.0/libexec/lib/python3.12/site-packages/ansible ansible collection location = /Users/sebastian/.ansible/collections:/usr/share/ansible/collections executable location = /opt/homebrew/bin/ansible python version = 3.12.1 (main, Dec 7 2023, 20:45:44) [Clang 15.0.0 (clang-1500.0.40.1)] (/opt/homebrew/Cellar/ansible/9.1.0/libexec/bin/python) jinja version = 3.1.3 libyaml = True
# /Users/sebastian/.ansible/collections/ansible_collections Collection Version ---------------- -------- community.docker 3.6.0-b2 # /opt/homebrew/Cellar/ansible/9.1.0/libexec/lib/python3.12/site-packages/ansible_collections Collection Version ---------------- -------- community.docker 3.4.11
CONFIG_FILE() = None
Target: Proxmox PVE 8.1.3
Create a compose.yaml or compose.yml file for a Docker compose project. For example Watchtower.
Try to start it with:
- name: Deploy Watchtower community.docker.docker_compose_v2: project_src: /docker/watchtower pull: always state: present
Watchtower should start.
fatal: [hogsmeade]: FAILED! => {"changed": false, "msg": "\"/docker/watchtower\" does not contain docker-compose.yml or docker-compose.yaml"}
The text was updated successfully, but these errors were encountered:
Ref: https://docs.docker.com/compose/compose-yaml-file/
Interesting, I wasn't aware that compose.yaml / compose.yml is possible and even preferred.
Sorry, something went wrong.
#759 should fix this.
Successfully merging a pull request may close this issue.
SUMMARY
The new docker_compose_v2 doesn't allow Docker compose files to be named compose.yaml or compose.yml
ISSUE TYPE
COMPONENT NAME
community.docker.docker_compose_v2
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Target: Proxmox PVE 8.1.3
STEPS TO REPRODUCE
Create a compose.yaml or compose.yml file for a Docker compose project. For example Watchtower.
Try to start it with:
EXPECTED RESULTS
Watchtower should start.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: