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

14 lines
308 B
Python

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