It seems due to some changes in ansible docker_container_info and docker_compose are no longer builtin.
On Ubuntu 20.04 with ansible installed via the ppa, I had to install the collections community.docker and community.netcommon (since the filter ipaddr was not available) and apply the following changes:
I also had to change the pip installation from docker to docker-compose since, although I installed docker-compose before running this role it complained that the pip package was missing. Installing docker-compose via pip seems to pull in docker as a dependency. Which seems to satisfy all dependencies for community.docker.docker_compose.
Since I am rather new to ansible I don't know if it is possible to modify the role in a way that it works for ansible 2.9 and 2.10 - therefore I choose to create just an issue and not a PR.
After installing the collections and applying the three changes the role worked as expected.
Hello,
thanks for making this role available!
It seems due to some changes in ansible docker_container_info and docker_compose are no longer builtin.
On Ubuntu 20.04 with ansible installed via the ppa, I had to install the collections community.docker and community.netcommon (since the filter ipaddr was not available) and apply the following changes:
I also had to change the pip installation from docker to docker-compose since, although I installed docker-compose before running this role it complained that the pip package was missing. Installing docker-compose via pip seems to pull in docker as a dependency. Which seems to satisfy all dependencies for community.docker.docker_compose.
Since I am rather new to ansible I don't know if it is possible to modify the role in a way that it works for ansible 2.9 and 2.10 - therefore I choose to create just an issue and not a PR.
After installing the collections and applying the three changes the role worked as expected.
best regards,
Paul