Custom modules for roles

26 views
Skip to first unread message

Andrew Pashkin

unread,
Sep 5, 2014, 12:52:07 PM9/5/14
to ansible...@googlegroups.com
Hi all!

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

--
With kind regards, Andrew Pashkin.
cell phone - +7 (985) 898 57 59
Skype - waves_in_fluids
e-mail - andrew....@gmx.co.uk

Matt Martz

unread,
Sep 5, 2014, 2:03:49 PM9/5/14
to ansible...@googlegroups.com
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.
> --
> 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/5409EA2C.4010802%40gmx.co.uk.
> For more options, visit https://groups.google.com/d/optout.
>


--
Matt Martz
ma...@sivel.net
http://sivel.net/

Michael DeHaan

unread,
Sep 5, 2014, 3:36:45 PM9/5/14
to ansible...@googlegroups.com
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!




Reply all
Reply to author
Forward
0 new messages