@mdione @dhoppe I always find it easier to debug jinja by removing all of the template and adding it back piece by piece…
That or copying the variables that go into it into a fixture and using that with a playbook with just the jinja and vars.
@mdione @dhoppe I always find it easier to debug jinja by removing all of the template and adding it back piece by piece…
That or copying the variables that go into it into a fixture and using that with a playbook with just the jinja and vars.
@dhoppe thanks. That means that now I "only" have to extract the variable information from #ansible. As that aspect of ansible is quite complex to reproduce, I will have to rely on Ansible itself. Maybe one could use it as a module and ask it to generate that?
@mdione This tool was recommended by someone some time ago.
https://github.com/kpfleming/jinjanator
I keep looking for ways to debug #jinja templates under #ansible. Seems like the answer is that you can't debut Jinja templates at all.
PS: boosts and tips welcome.
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.