Ansible playbook for accessing url

Hello Techies,

I am improvising my Ansible skills in a very slow pace and I got stuck here:
Is there anyway to hit my ticket management system (cherwell) url and login to it with credentials through Ansible? I’ve so far researched about uri module but not able to fetch more?

TIA.

This possible via uri,
if rest api is supported on your managemennt system , you can define login structure and form url under uri and provide login structure to login

Hi Raj,
Thanks for the response.
Ya I figured out something about uri module and wrote a started writing a play.

Hi there

Couple of issues.
* Your indentation seems off - all the parameters for 'uri' need to be
indented further. See
http://docs.ansible.com/ansible/latest/uri_module.html#examples
* By the looks of it you seem to want to do a POST request, but you
didn't specify the method as such (and the default is GET). See
previous URL.
* The error you're getting seems to indicate a name resolution issue.
Remember that this code is not run on your management station, but on
your target. So if that is not able to resolve "graycsm1wv" then it
won't work. Given that it's a single label hostname you'll likely need
some specific resolver local to your site.

Dick