from functools import partial from ansible.utils.unicode import unicode_wrap class FilterModule(object): ''' Ansible file jinja2 filters ''' def filters(self): return { 'abspath': partial(unicode_wrap, os.path.abspath) }