# Ignoring a line in a template file

**URL:** <https://forum.ansible.com/t/ignoring-a-line-in-a-template-file/14337>\
**Category:** Ansible Project\
**Created:** [January 14, 2014, 10:26am UTC](https://forum.ansible.com/t/ignoring-a-line-in-a-template-file/14337 "2014-01-14T10:26:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eric\_Palmer1](https://avatars.discourse-cdn.com/v4/letter/e/958977/32.png) [@Eric\_Palmer1](https://forum.ansible.com/u/Eric_Palmer1)\
**Post date:** [January 14, 2014, 10:26am UTC](https://forum.ansible.com/t/ignoring-a-line-in-a-template-file/14337/1 "2014-01-14T10:26:53Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Eric\_Palmer1](https://avatars.discourse-cdn.com/v4/letter/e/958977/32.png) [@Eric\_Palmer1](https://forum.ansible.com/u/Eric_Palmer1)\
**Post date:** [January 14, 2014, 10:44am UTC](https://forum.ansible.com/t/ignoring-a-line-in-a-template-file/14337/2 "2014-01-14T10:44:22Z")

</div>

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 %}
