Re: [ansible-project] best way to switch ansible mode to simply dump the output of jinja2 templating

2016-09-16 Thread Dick Davies
I don't know of a flag, no (wouldn't be easy to disable handlers,
prevent local filename collisions, etc).

You _could_ use the lookup() function to load the template as a
string, then use debug: to print the string out.

But you'd have to get any vars the template needed into scope to be
sure the template ran it would on a host.

So, not easy.

If you're asking because you want to test run a play, i find local VMs
much simpler.


On 16 September 2016 at 19:47, 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 ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/4ebcbb4a-6e59-4b23-a65b-64c1d03cd3d3%40googlegroups.com.
> 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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAK5eLPR%3Dj9BEK%2B-4tSH6b6OH%2BVppsiGVaxoGqRYYekdkpHsdTw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] best way to switch ansible mode to simply dump the output of jinja2 templating

2016-09-16 Thread K Dawg
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 ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/4ebcbb4a-6e59-4b23-a65b-64c1d03cd3d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.