I think you should be able to do this with uri module, but you might need 
to check the http response code as well.  An unsuccessful http request with 
basic authentication will return a response from the server, but it will 
typically not have a 200 (OK) response code, but instead have something 
like a 401 Unauthorised or 403 Forbidden response.

Hope this helps,

Jon

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/853e06d4-3c5e-4654-ac09-d2ca2416d63f%40googlegroups.com.

Reply via email to