Ive thought about this too, and would also like a way to do this, in the mean time, i wrote this script that i call jinjacat.py
#!/usr/bin/env python # public domain import sys import yaml import jinja2 if len(sys.argv) != 3: print "usage: jinjacat.py template.j2 variables.yaml" exit() with open(sys.argv) as fp: template = jinja2.Template(fp.read()) with open(sys.argv) as fp: vars = yaml.load(fp.read()) print(template.render(vars)) On Friday, September 16, 2016 at 4:28:52 PM UTC-7, bigK wrote: > > Sorry I meant the output of the templating process on jinja2 template > (i.e., after all the replacements are done on the template). > > > On Friday, September 16, 2016 at 2:47:50 PM UTC-4, K Dawg wrote: >> >> Is there a way to simply tell ansible to output any jinja2 templates it >> would have created when an ansible playbook is run? >> >> I.e., not deploy them but just dump them to local host >> >> Thanks a bunch. >> > -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to firstname.lastname@example.org. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/60796c10-8a95-45bc-83c3-c793dd757137%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.