Ignoring a line in a template file

I have this line

LogFormat “{ "@timestamp": "%{%Y-%m-%dT%H:%M:%S%z}t", "@fields": { "client": "%a", "duration_usec": %D, "status": %s, "request": "%U%q", "method": "%m", "referrer": "%{Referer}i", "vhost": "%v" , "responsebytes": "%B"} }” log_json

in a template .j2 file

I want it to pass literally to the target src file and not be evaluated by ansible / jinja2

Is there a way I can deference the whole line?

Thanks
And thanks for ansible. I’m learning sys ops one ansible role at a time.

Nevermind got it, this works

{% raw %}

LogFormat “{ "@timestamp": "%{%Y-%m-%dT%H:%M:%S%z}t", "@fields": { "client": "%a", "duration_usec": %D, "status": %s, "request": "%U%q", "method": "%m", "referrer": "%{Referer}i", "vhost": "%v" , "responsebytes": "%B"} }” log_json

{% endraw %}