Skip to content

Instantly share code, notes, and snippets.

@daviddyball
Created June 22, 2015 18:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daviddyball/3ddb7562630fd4d4bcf0 to your computer and use it in GitHub Desktop.
Save daviddyball/3ddb7562630fd4d4bcf0 to your computer and use it in GitHub Desktop.
Usefull filters for ansible
def split_string(*a, *kwargs):
return split(a[1],a[0])
class FilterModule(object):
def filters(self):
return {
'split_string': split_string
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment