3 ms·
They support for-if from python, too: https://jinja.palletsprojects.com/en/3.1.x/templates/#loop-filtering https://jinja.palletsprojects.com/en/3.1.x/templates/
by mdaniel 3y ago
They support for-if from python, too: https://jinja.palletsprojects.com/en/3.1.x/templates/#loop-filtering https://jinja.palletsprojects.com/en/3.1.x/templates/#loop-f... but I haven't tried the "recursive" keyword to know if ansible supports that. I say "ansible supports that" because they don't just drop jinja2 into ansible and call it a draw, they have a bunch of custom execution integrations: https://github.com/ansible/ansible/blob/v2.16.3/lib/ansible/template/__init__.py#L561 https://github.com/ansible/ansible/blob/v2.16.3/lib/ansible/...