geerlingguy / ansible-role-docker

Ansible Role - Docker
https://galaxy.ansible.com/geerlingguy/docker/
MIT License
1.81k stars 853 forks source link

Downgrading docker-compose does not reinstall pinned binarys #378

Open ironicbadger opened 1 year ago

ironicbadger commented 1 year ago

When downgrading docker-compose the role checks the binary version and removes it successfully but never reinstalls the pinned binary version.

For example I have docker-compose 2.x installed and request 1.29.2. The 2.x binary is removed but 1.29.2 doesn't get installed until I run the role a second time.

Configured via docker_compose_version: 1.29.2 in group_vars.

Duplicate of auto-closed #350 .