ansible-plugins-collection/plugins/filter/files.py

10 lines
258 B
Python
Raw Normal View History

2022-12-10 23:54:41 +01:00
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)
}