Now that the Jinja2 syntax is standard in 1.2, is there a way for me to tell Ansible not to honor to the $old_variable way of doing things in templates? I keep running into issues (mostly in Perl and Shell scripts being templated and distributed) where variables are unfortunately named after Ansible variables and getting substituted when they shouldn’t be…
thanks!
matt
Not presently, but I very much like this idea.
It could even be shipped to new installations by default, maybe at a later date, where we so choose.
I’d use the copy module if you can for now of course, but if you are templating I can see escaping becoming a challenge!
Patches for a new setting would be accepted, if you don’t want to tackle it at least file a github as it is somewhat easy to do.
Great! I’ve submitted a pull request… it did end up being pretty easy, but I’ve never looked at those bits of the code before so I’ve hopefully not missed anything (I did test it, and it appears to be doing the right thing).
matt