Tabulator in jinja2 template?

Dear all,

is there a way to add a tabulator to a template in ansible? I mean
without actually using a tabulator, so it would be easier to spot
while checking the template.

The lineinfile module supports {{\t}}, but that throws errors in my
tests. I also find nothing on the web, but maybe I'm lacking the right
search terms...

Thanks in advance,
Johannes

Try putting quotes around \t, i.e. {{ "\t" }}.

It does look a bit too verbose to me, though. You could use cat -A
instead to see things like tabs in a file instead.

Best regards

Try putting quotes around \t, i.e. {{ "\t" }}.

Thanks, that works. Inconsistent, but it works.

It does look a bit too verbose to me, though. You could use cat -A
instead to see things like tabs in a file instead.

I agree it makes things harder to read, but in this case I guess it is
worth the trouble...

Thanks!

Johannes