OSX 10.10.3 check uri httplib2 not found

Hi,

I´m trying to test an URL status Code:

`

Check that you can connect (GET) to a page and it returns a status 200

Check that a page returns a status 200

    - action: fail
      when: "'illustrative' not in webpage.content"

`

I´ve installed httplib2 with

sudo pip install httplib2

but it fails with :

failed: [staging] => {"failed": true} msg: httplib2 is not installed FATAL: all hosts have already failed -- aborting

I quess ansible is not using the right python path. How can I solve this?

cheers,

– anatol

set ansible_python_interpreter to point to the correct python for that host

Can you advise me how to do that in OSX?

not really, I don't use OS X. But plenty of others using OS X should be able to.

ok thanks, I´m new to python + ansible and would not have asked if google had brought up something useful.