I've tried it with the URI module and I don't believe it's doing what I'd 
like.  It will return a successful authentication even when I use incorrect 
credentials, so I'm not sure what it's really doing.

On Tuesday, March 10, 2020 at 5:09:22 PM UTC-4, J Hawkesworth wrote:
>
> 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/106cd44b-215d-40fb-845d-c6087fd5e6e3%40googlegroups.com.

Reply via email to