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
    - uri: url=http://www.example.com


    # Check that a page returns a status 200 
    - action: uri url=http://www.example.com return_content=yes
      register: webpage
      delegate_to: 127.0.0.1

    - 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



-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f835ef99-65d7-4772-9a28-1c0cec7af38b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to