Custom modules for roles

Hi all!

I there way to package custom modules (in my case - Jinja2 filters) with a role?

No currently there is no way to package anything along with a role
other than a module. Filters/action plugins/connect_plugins/etc
cannot be packaged with a role.

This is due to the paths where plugins are looked for.

For answering completeness, if you want to embed modules with roles, they can go in a “./library” directory with the role.

I’m open to making it support the other types for easy packaging, as increasingly there are cases where we don’t want certain things in core, but want to make it easy to distribute with Galaxy - though I’m always interested in seeing if contributions for them to core make sense, as we believe in continual upgrades to what we package.

Let us know what the filter is if you think it might be good for things!