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