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.