This actually sounds like precisely what I was hoping for. Michael, can you let me know why you don't recommend it? I assume by "evaluate" the template, you mean it will parse it with Jinja2, which seems to make sense...? Thanks for the help!
On Monday, 11 August 2014 11:03:46 UTC-7, Michael DeHaan wrote: > > This is a little different. This will *evaluate* the template at this > point when it can. > > I don't recommend it. > > > > > On Mon, Aug 11, 2014 at 10:45 AM, C. Morgan Hamill <[email protected] > <javascript:>> wrote: > >> Excerpts from AJ Daws's message of 2014-08-08 17:30:33 -0400: >> > Michael, no need to apologize, you've already helped a lot, thank you! >> > >> > One thing that would really help here and is general enough I'm sure it >> > would find use elsewhere as well is to have the template module capable >> of >> > outputting to a variable rather than a file. That certainly would help >> me >> > in my case, and I've seen cases elsewhere while trying to improve my >> code >> > for this where it would also have been helpful. >> >> There is also a template lookup plugin, no? This should evaluate the >> contents of a template: >> >> {{ lookup('template', 'tmpl.j2') }} >> -- >> Morgan Hamill >> >> -- >> 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] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/1407768238-sup-5790%40al.wesleyan.edu >> . >> 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/8313d9fa-473e-4b7a-9881-bb6984ae81ef%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
