I'm trying to use Ansible filters with the Jinja2 CLI from github.com/mattrobenolt/jinja2-cli. It expects an extension that is passed to jinja2.Environment constructor.
I tried to search in the function (password_hash) I want to use in the Ansible repo : https://github.com/ansible/ansible/blob/f270b4e224174557963120e75bfc81acf1cdde61/lib/ansible/plugins/filter/core.py#L625
But I wasn't able to figure out how to add it to the Jinja2 CLI. Is it even possible without rewriting some code?
Thanks