This is a snippet from my Ansible jinja template which populates an environment specific template.
docker_compose_mq: <string-passed from Jenkins>
docker_compose_profiles: "string"
{% if "{{ risk_docker_compose_mq }}" == "string" %}
{% "{{ risk_docker_compose_profiles: "string1" }}" %}
{% endif %}
This fails with a pretty generic error message:
"Syntax Error while loading YAML.\n\n\nThe error appears to have been in 'True': line 26, column 2, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\n(could not open file to display line)"}
I'm almost certain it's to do with escaping the quotes here but can't for the life of me work out what I'm doing wrong, any ideas?