TASK [start docker-compose] ****************************************************
fatal: [ubuntu@.org]: FAILED! => {“changed”: false, “msg”: “Failed to import the required Python library (Docker SDK for Python: docker (Python >= 2.7) or docker-py (Python 2.6)) on .org’s Python /usr/bin/python3. Please read module documentation and install in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter, for example via pip install docker
or pip install docker-py
(Python 2.6). The error was: No module named ‘docker’”}
This error just started last week, after no changes. I’ve the error 50x and I’m using python2.7, I’ve got docker-compose, I’ve tried installing all the docker-py multiple ways; I’m not sure what to do here…
Comment out this line in the
ansible.cfg
interpreter_python=/usr/bin/python3
Solved!
Sweet, I’ll make sure we have that in the docs somewhere.
This error is on the server, right? Not my local machine?