custom jinja filter inside role

I want to add own jinja filter to my role, is it possible? If yes, where I should put it. I’ve tried library subdir but unsuccessfully.

filter_plugins/file_with_custom_filter.py

It works if i put it to playbook base directory, but does not work if I put it inside a role.

Hello Hleb,

AFAIK putting this into the role dir requires Ansible 2.0.

Regards
Mirko

some of the plugin dirs broke in 1.9, but they shoudl all work in 2.0