python - How do you add httplib2 into ansible? -
i trying use get_url module ansible , when run following error:
failed: [localhost] => (item=10) => {"failed": true, "item": "10"} msg: httplib2 not installed
now have installed httplib2 using pip:
pip install httplib2 requirement satisfied (use --upgrade upgrade): httplib2 in /usr/local/lib/python2.7/site-packages
but hasn't helped situation. can see ansible using different python_path os (where httplib2 installed) cannot work out how httplib2 installed path (other copying isn't nice).
any appreciate.
i ran problem on 1 of macs (i had been switching between homebrew python installation , system install recently, funky anyways), , ended fixing it, @ least particular session, starting interactive python session on cli , importing library:
$ python >>> import httplib2 >>> exit() $ [continue doing ansible...]
Comments
Post a Comment