I wanted to start looking at ansible 2 now that its in beta -- most things
are working for me out of the box -- but I have a very simple custom filter
that I need to use which isn't being discovered:

sts-infrastructure (master)> cat filter_plugins/wrap.py

def wrap(list):

    return [ '"' + x + '"' for x in list]


class FilterModule(object):

    def filters(self):

        return {

            'wrap': wrap

        }

I know a ansible2 migration guide is in the works -- I'm assuming this will
be a really quick fix though ...  Does anybody know how to define a custom
filter in ansible2?  Or have a link to a WIP of the migration guide?

Thanks,
Ben

-- 
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/CABUBibs%2BYzO97JWCuAqH0gR66-Hkv5eq7a7DTkWmkUafHKdcpQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to