Hello,
I'm currently trying to use uri module in order to call an API. This API
uses both body and query parameters. But the only way to use query
parameters is to write them directly in the url. Is it the expected way of
using it ?
Thank you for your answers,
Kylian.
PS :
An example :
- name: "Logout"
uri:
url:
"{{base_url}}/a_auth_logout?token={{token}}&ServerIP={{server_ip}}"
method: POST
validate_certs: no
register: logout_test
- name: "Logout expected"
uri:
url: "{{base_url}}/a_auth_logout"
method: POST
validate_certs: no
query_parameters:
token: {{token}}
serverIP: {{server_ip}}
register: logout_test
--
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/5375b547-63a1-4218-b504-3d8c4eb1e3ebn%40googlegroups.com.