jinja2-cli icon indicating copy to clipboard operation
jinja2-cli copied to clipboard

Ansible filters

Open rpersee opened this issue 2 years ago • 3 comments

Hi,

This adds support for Ansible filters (without importing each one manually like you would have to do with #86 ?). This would also solve #91 and #85 (and my need to use the Ansible password_hash filter). Maybe you could look at it and tell me if there are things that need to be fixed?

Thanks

rpersee avatar Jun 21 '22 15:06 rpersee

Filters in ansible always seem to be contained under the following structure: <base module>.plugins.filter.<*.py> > ModuleFilter.filters(). So I reformatted the code to be more generic and added the ability to import filters from Ansible Collections (like ansible.utils, ansible.netcommon, community.general, ...). To use the basic filters you can use --ansible core or --ansible <collection> for any additionnal Ansible Collection (like --ansible community.general for random_mac filter for example).

rpersee avatar Jun 22 '22 12:06 rpersee

What's up dude?

rpersee avatar Apr 23 '23 22:04 rpersee

What's up dude?

Hey man, how's it going?

mattrobenolt avatar Apr 25 '23 22:04 mattrobenolt