On 10/16/19 8:07 PM, Sunitha Iyer wrote: > I am trying to run a play book from host(ansible VM) to pull an image from > docker host, I tried pip install docker still > it not working, can you please help. > > > failed to import the required python library (docker sdk for python: docker > (python >= 2.7) or docker-py (python 2.6)) > on host's python /usr/bin/python3. please read module documentation and > install in the appropriate location, for example > via pip install docker or pip install docker-py (python 2.6). the error was: > no module named request.exceptions")
Try to set the following variable to make sure Ansible uses Python3 on the
target host:
ansible_python_interpreter: /usr/bin/python3
Regards
Racke
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
> [email protected]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/60121656-a085-444f-8081-f14f069bace5%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/60121656-a085-444f-8081-f14f069bace5%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/caa52b50-89d1-7899-b731-585539b71af7%40linuxia.de.
signature.asc
Description: OpenPGP digital signature
