Hi,
Please help to get this resolved, tried all most everything.
Ansible Version:
ansible 2.7.10
config file = /etc/ansible/ansible.cfg
configured module search path = [‘/home/stack/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’]
ansible python module location = /home/stack/.local/lib/python3.6/site-packages/ansible
executable location = /home/stack/.local/bin/ansible
python version = 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0]
List
ll drop support for Python 2.7.
docker-compose 1.9.0
docker-py 1.10.6
docker-pycreds 0.4.0
dockerpty 0.4.1
python --version
Python 2.7.15rc1
Error
FAILED! => {“changed”: false, “msg”: “Failed to import docker or docker-py - No module named requests.exceptions. Try pip install docker
or pip install docker-py
(Python 2.6)”}
FAILED! => {“changed”: false, “msg”: “Failed to import docker or docker-py - No module named docker. Try pip install docker
or pip install docker-py
(Python 2.6)”}