Fails to perform docker pull via ansible
See original GitHub issueHOST
- Ubuntu 19.10
- Ansible 2.9.9 (latest)
- Mitogen 0.2.9 (latest)
- Python 3.7.5
ansible-config dump --only-changed
yields an empty file- Nothing custom
TARGET
- Ubuntu 18.04
- Python ? There are multiple versions on the target machine, so I ran
ansible -m setup machinename
and it showed me"ansible_python_version": "2.7.17"
. I hope that’s right?
PROBLEM
In a playbook:
- name: pull image
docker_image:
name: imagename:v1.2.3
source: pull
Error:
“msg”: “Failed to import the required Python library (Docker SDK for Python: docker (Python >= 2.7) or docker-py (Python 2.6)) on remote’s Python /usr/bin/python. 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
orpip install docker-py
(Python 2.6). The error was: u’requests’ is present in the Mitogen importer blacklist, therefore this context will not attempt to request it from the master, as the request will always be refused.”
This is part of a very large playbook which seems to work, only this task fails. And without mitogen this task works.
I have no idea what the problem could be?
Issue Analytics
- State:
- Created 3 years ago
- Comments:9
There’s a new rc now for Ansible 2.10+: https://github.com/dw/mitogen/releases/tag/v0.3.0-rc.0
Perf on Python3 is not yet as good as Python2, but eventually the plan is to fix that up 👍