Re: [ansible-project] ansible2 -- filter_plugins

2015-10-08 Thread Brian Coca
afaik filters have not changed and should 'just work'

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAJ5XC8%3DEw%3DRe9wTC%2BJJf3RKR1jkD6BpLb_o-%2B0uuGuzuGc47SA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] ansible2 -- filter_plugins

2015-10-06 Thread Ben Cohen
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
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.