I am trying to create a rest_command and if I use plaintext for the username and password I get the response I expect, Great!, but not ideal.
rest_command:
api_login:
url: "https://X.X.X.X:443/api/auth/login"
method: POST
payload: >
{
"username": "!secret user",
"password": "!secret pass"
}
headers:
Content-Type: "application/json"
verify_ssl: false
I keep reading that I can’t reference a secret within the jinja template?
Does someone have some thoughts on this?
Thanks in advance!