Hi there,
I have a scenario where I have to pass a token in the URI Authorization
header, but it must be enclosed in double quotes as per my endpoint's
requirement. When I attempt to do it, the quotes are being parsed into JSON
and the token is enclosed by backslashes.
How can I avoid Ansible evaluating those manually added double quotes?
Here's my URI task snippet.
- name: Login
uri:
url: "test.com"
method: GET
validate_certs: no
return_content: yes
headers:
Authorization: 'Token token="{{ token }}"'
register: output
Regards,
Josue.
--
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/acb40f51-3efb-4d5f-8219-d4d988b11c5fn%40googlegroups.com.