That would be /usr/lib/python2.6/site-packages/ansible/module_utils/ on my system (CentOS 6.6, Ansible 1.9.1) I'm guessing.
I know folks have discussed/pleaded this before - but I'd like to add my voice to this as well - having an officially sanctioned way to import common code for custom modules. On Friday, May 15, 2015 at 10:21:52 AM UTC-5, Brian Coca wrote: > > stuff in lib/ansible/module_utils/ > > On Fri, May 15, 2015 at 11:05 AM, Ananda Debnath > <[email protected] <javascript:>> wrote: > > Thanks Brian. > > > > Is there a way to add custom common functions? > > > > > > On Friday, May 15, 2015 at 9:52:21 AM UTC-5, Brian Coca wrote: > >> > >> no, filters are not available to modules, but modules do have a bunch > >> of common functions available, like 'pretty_bytes', probably the > >> reverse of what you want. > >> > >> > >> -- > >> Brian Coca > > > > -- > > 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 [email protected] <javascript:>. > > To post to this group, send email to [email protected] > <javascript:>. > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/ansible-project/1557d25e-418d-44f3-b2a1-d3b0e5149bd9%40googlegroups.com. > > > > > > For more options, visit https://groups.google.com/d/optout. > > > > -- > Brian Coca > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/de683e06-1f0b-4c84-bb24-48c317d63e7e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
