Hey all,

Trying to use the URI module instead of a curl command and I can't seem to 
get the usage right.

Here's the shell command:
curl -X POST --data 
"action=login&username={{api_user}}&password={{api_pass}}" {{api_URL}} -k

Here's what I have for the module args but I'm not sure how to pass in the 
--data section
- name: Start new API session
  uri:
    method=POST
    url={{api_URL}}
    returncontent=yes
  register: session_id_raw
  when: session_id is not defined

I'm not sure where to pass in the other flags and arguments. Any help would 
be much appreciated.

Thanks,
Chip

-- 
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/0c363209-6b6b-4a1b-9ae1-25bab4f49ba4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to