On 2 February 2015 at 12:52, Tom Bamford <[email protected]> wrote:

Hi Tom,

> Jinja templating doesn’t work in playbooks in that way. Lots of variable
> constructs are actually parsed with jinja2, so you can do stuff like
>
> - set_fact:
>     myvar: "{% if something %}this{% else %}that{% endif %}"
>
> As Giovanni mentioned, there are numerous looping constructs for things
> like task repetition. Playbooks are declarative, so it wouldn’t really be
> right to build them from a template.
>
I understand this, and it is exactly what I am trying to discuss here. Why
can't one build a playbook from a template? I think plain YAML is just fine
for declarative statements. Or am I missing a use case?

-- 
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/CANbPJFmqH0-W%2BEHV%3DY%2B5_EX9fAbxKWRXYajWmpbkrVgA-cCAHQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to