Many thanks for this information. For future reference where is this documented? The interaction of ansible with jinga2 seems a bit opaque.
On Wed, Jun 1, 2016 at 11:12 PM, Brian Coca <[email protected]> wrote: > ansible uses the trim_blocks setting when invoking jinja, by default its > 'yes'. > > ansible allows for overrides by creating a special header: > > > ``` > #jinja2: trim_blocks: False > # > # {% if i_want_yes %} yes {% else %} no {% endif %} > # > ``` > > ---------- > Brian Coca > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Ansible Project" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/ansible-project/GPGvcRXJzz0/unsubscribe. > To unsubscribe from this group and all its topics, 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/CACVha7d6DSia6-WTyeVWHfvRE6dyr7U5iYbo-8yCRpuWvCkz7Q%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CACVha7d6DSia6-WTyeVWHfvRE6dyr7U5iYbo-8yCRpuWvCkz7Q%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAGgSkjG_PJBzcPA86J7Y3cyErKqYJOpeXpPYhFBOLC92476Xqw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
