-
Notifications
You must be signed in to change notification settings - Fork 2k
uri module complains that httplib2 is not installed even when httplib2 module is intalled #2921
Comments
I recommend using the |
Thanks for the clarification, @sivel. It would be nice to mention this in the documentation. |
@sivel There seems to be an increasing number of these "oh yeah you have to install this with pip in order to use it" and these frequently don't show up in the documentation. (as is the case with this one). IMO Ansible is supposed to run on "vanilla linux boxes" which is why it uses python to begin with but stuff like this means it doesn't. In the future maybe this stuff gets shipped over with SSH rather than rely on mutating the "global" state of your target box (aka you have to have PIP installed and install global PIP modules) in order to satisfy undocumented internal Ansible team design decisions. "Set up the box in a way just so Ansible works" is sounding more like Chef and Puppet which I think is a lot of what your users are trying to avoid. Thoughts? |
As of Ansible v2.0.2 which will be released soon, httplib2 is no longer a dependency of the uri module. |
Awesome, music to my ears! Sounds like you guys are sticking with the "vanilla linux boxes" approach. Excellent 👍 |
@sivel did this make it into v2.0.2 or as the documentation says: The dependency on httplib2 was removed in Ansible 2.1 |
@fusion94 it was backported into 2.0.2 to address some other issues, it was originally slated to be part of 2.1. |
@sivel awesome thanks... |
Error from playbook: FAILED! => {"changed": false, "failed": true, "msg": "httplib2 >= 0.7 is not installed"}
Pip output: pip freeze | grep -i httplib
httplib2==0.7.7
ansible-playbook version: ansible-playbook 2.0.0.2
The text was updated successfully, but these errors were encountered: