blob: 6e8beb9ccdff94df956b2185056ee57615cfc527 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
DOCUMENTATION:
name: realpath
author: darkone23 (@darkone23)
version_added: "1.8"
short_description: Turn path into real path
description:
- Resolves/follows symlinks to return the 'real path' from a given path.
- Filters always run on the controller so this path is resolved using the controller's filesystem.
options:
_input:
description: A path.
type: path
required: true
EXAMPLES: |
# realpath => /usr/bin/somebinary
realpath: {{ '/path/to/synlink' | realpath }}
RETURN:
_value:
description: The canonical path.
type: path
|