I am running myserver in ubuntu:
+ sudo cat /etc/os-release
NAME=\"Ubuntu\"
VERSION=\"16.04.6 LTS (Xenial Xerus)\"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME=\"Ubu
It appears that you don't have the docker
module installed.
You will need to install it via your system package manager (apt install python-docker
, for example), or using pip
.
If you have multiple Python versions, make sure that you've installed the docker
module into the version that Ansible is using.
In my case (Ubuntu 20 with installed docker) these commands was required
apt update
apt install python3 python3-pip
pip3 install docker docker-compose
Detailed requirements:
https://docs.ansible.com/ansible/latest/collections/community/general/docker_compose_module.html