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