22 lines
479 B
YAML
22 lines
479 B
YAML
|
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
|