I'm using a single line jinja block in a templated configuration file.
Jinja is stripping the newline character at the end of this block
causing the next line to be collapsed thus breaking the configuration
file.

I assume I could set some global jinja options in the ansible.config
file, but I want to control the whitespace on a per-usage basis. But
Jinja (or Ansible, not sure which) is breaking when I try to use the
+/- control characters that Jinja documents
(http://jinja.pocoo.org/docs/templates/#whitespace-control) for this.
I get a "tag name expected" error from the template module.

Am I doing something wrong or is this not allowed?

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAJQqANdkBDRC08a_EhSu-F3SOv2rh7BrQkY0gwctZ%2BfdUJFJ8Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to