# httplib2 and uri

**URL:** <https://forum.ansible.com/t/httplib2-and-uri/19688>\
**Category:** Ansible Project\
**Created:** [November 4, 2015, 3:55pm UTC](https://forum.ansible.com/t/httplib2-and-uri/19688 "2015-11-04T15:55:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom\_rkba](https://avatars.discourse-cdn.com/v4/letter/t/e79b87/32.png) [@tom\_rkba](https://forum.ansible.com/u/tom_rkba)\
**Post date:** [November 4, 2015, 3:55pm UTC](https://forum.ansible.com/t/httplib2-and-uri/19688/1 "2015-11-04T15:55:24Z")

</div>

I am trying to figure out what is wrong with either my playbook, python installation or both.

Both hosts are running CentOS 6.  
Python: python.x86\_64  
2.6.6-52.el6  
Ansible 1.9.4 is installed on the control host.

The data being returned is:

OK54Web Server is healthy2.0.5-dDatabaseHealthCheckTaskOK1Database at is healthy. RiakOK52Riak at riakhost[:8087](http://uesriak-ch2-a-vip.sys.comcast.net:8087) is healthy.

I am looking for the string “Web Server is healthy”

The JSON is:

`
OK
` 54 Web Server is healthy 2.0.5-d DatabaseHealthCheckTask `
OK
` 1 Database at @somehost Riak `
OK
` 52 Riak at somehost:8087 is …

I have the following playbook that is intended to connect and pull some data about what the server is doing:

---

<div class="post-metadata">

**Author:** ![Toshio\_Kuratomi](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@Toshio\_Kuratomi](https://forum.ansible.com/u/Toshio_Kuratomi)\
**Post date:** [November 5, 2015, 1:33am UTC](https://forum.ansible.com/t/httplib2-and-uri/19688/2 "2015-11-05T01:33:47Z")

</div>

I don't see anything wrong with your playbook. The error your getting  
means that for some reason ansible isn't finding your httplib2  
installed on the remote machine(s) (Would be multiple machines if web  
is a group rather than a single host).

Judging from your description so far, do you have everything installed  
from one of CentOS or EPEL repositories? On the remote machine, what  
httplib2 is installed? (For instance, what does this ansible command  
show: ansible web -m command -a 'rpm -q python-httplib2'

-Toshio
