custom jinja filter inside role

52 views
Skip to first unread message

Hleb Valoshka

unread,
Jan 19, 2016, 11:50:16 AM1/19/16
to Ansible Project
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.

Brian Coca

unread,
Jan 19, 2016, 11:50:42 AM1/19/16
to Ansible Project
filter_plugins/file_with_custom_filter.py



--
Brian Coca

Hleb Valoshka

unread,
Jan 24, 2016, 9:12:46 AM1/24/16
to Ansible Project
On Tuesday, January 19, 2016 at 7:50:42 PM UTC+3, Brian Coca wrote:
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.

Mirko Friedenhagen

unread,
Jan 24, 2016, 6:06:11 PM1/24/16
to ansible-project

Hello Hleb,

AFAIK putting this into the role dir requires Ansible 2.0.

Regards
Mirko
--
Sent from my mobile

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d25aac63-8e36-4b14-9eb7-c9e3ae447a25%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Brian Coca

unread,
Jan 25, 2016, 3:01:41 PM1/25/16
to Ansible Project
some of the plugin dirs broke in 1.9, but they shoudl all work in 2.0


--
Brian Coca
Reply all
Reply to author
Forward
0 new messages