Modernize to use Docker Compose plugin and docker_compose_v2 Ansible module
geerlingguy opened this issue · comments
Jeff Geerling commented
With Docker Compose becoming a plugin in Docker (installed via apt install docker-compose-plugin
and used via docker compose
instead of the Python package's binary docker-compose
), Ansible has also recently added a docker_compose_v2
module that is compatible with the CLI instead of the old API.
I would like to use that, and the easiest way to update Ansible to incorporate the new plugin would be to run:
ansible-galaxy collection install -r requirements.yml --force