PG> Many thanks for this information. For future reference where is this
PG> documented?

https://groups.google.com/forum/#!topic/ansible-project/qHyIjyal_Ic is a
thread where it came up before, which says

  you can use a per template header to override this, you can see an
  example in the template docs.

  https://docs.ansible.com/template_module.html

which is now at http://docs.ansible.com/ansible/template_module.html, and
which only seems to mention it in a note saying

  Since Ansible version 0.9, templates are loaded with trim_blocks=True.

and not any actual examples, or any explanation of what trim_blocks does,
so it could be hard to spot this if you didn't already know what you were
looking for.

PG> The interaction of ansible with jinga2 seems a bit opaque.

That page also doesn't mention
http://docs.ansible.com/ansible/playbooks_filters.html, which I've found
to be super useful in turning up examples of Ansible-specific Jinja filters.

                                      -Josh ([email protected])

(apologies for the automatic corporate disclaimer that follows)




This email is intended for the person(s) to whom it is addressed and may 
contain information that is PRIVILEGED or CONFIDENTIAL. Any unauthorized use, 
distribution, copying, or disclosure by any person other than the addressee(s) 
is strictly prohibited. If you have received this email in error, please notify 
the sender immediately by return email and delete the message and any 
attachments from your system.

-- 
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/22351.44952.699240.260839%40gargle.gargle.HOWL.
For more options, visit https://groups.google.com/d/optout.

Reply via email to