On Saturday, 24 November 2018 20:25:15 CET Nick Ellson wrote:
> WOW!
>
> That worked SLICK! And thank you for the much better example, that is very
> readable but I had a hell of a time finding anything like that on google.
>
> OK, so you mentions jinja... I have heard this term and I hear it is
> something I need to learn as well... what might this look like using jinja,
> if you have time? (I have a working file now, thank you very much!)
The code in content: is Jinja so it look exactly like that.
Jinja is a template language for Python that Ansible is also using.
{{ <some_variable }} is actually Jinja, and everything after a when: in Ansible
is Jinja.
For more information about Jinja the documentation is here
http://jinja.pocoo.org/docs/2.10/templates/
--
Kai Stian Olstad
--
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/33554300.dYeBVKqfk0%40x1.
For more options, visit https://groups.google.com/d/optout.