ansible-plugins-collection/plugins/filter/abspath.yml

22 lines
479 B
YAML
Raw Normal View History

2022-12-10 23:54:41 +01:00
DOCUMENTATION:
name: abspath
author: Laur Ivan
version_added: "1.0"
short_description: Make a path absolute
positional: _input
description:
- Converts the given path to a absolute path.
options:
_input:
description: A path.
type: str
required: true
EXAMPLES: |
# foobar => ../test/me.txt
testing: "{{ '~/me.txt' | abspath }}"
otherrelpath: "{{ mypath | relpath }}"
RETURN:
_value:
description: The absolute path.
type: str