Re: [ansible-project] Re: How to easily test/experiment with jinja templating in ansible?

2016-09-30 Thread Azul
and 2 years later ... : ) On Friday, 30 September 2016, Marc Tamsky wrote: > On Friday, December 19, 2014 at 7:50:09 AM UTC-8, Dario Bertini wrote: >> >> I was thinking of simply using >> >> ansible -m debug -a "msg={{the_jinja_expression_I_want_to_test}}" >> >> but I realized that the output is

[ansible-project] Re: How to easily test/experiment with jinja templating in ansible?

2016-09-30 Thread Marc Tamsky
On Friday, December 19, 2014 at 7:50:09 AM UTC-8, Dario Bertini wrote: > > I was thinking of simply using > > ansible -m debug -a "msg={{the_jinja_expression_I_want_to_test}}" > > but I realized that the output is not quite what I'd expect: > > ansible -m debug -a "msg={{hostvars[inventory_hostname

[ansible-project] Re: How to easily test/experiment with jinja templating in ansible?

2014-12-22 Thread Azul Inho
I usually attach a debugger, http://michaeldehaan.net/post/35403909347/tips-on-using-debuggers-with-ansible or set a small template action to dump the contents of the dictionary/variable whatever to a local file on my box. It's easier to inspect it that way, On Friday, December 19, 2014 3:50:0