abs¶
Collection Note
This module is part of the ansible.builtin collection. To install the collection, use:
Added in version2.5.
Synopsis¶
- Check if the provided path is absolute, not relative.
- An absolute path expresses the location of a filesystem object starting at the filesystem root and requires no context.
- A relative path does not start at the filesystem root and requires a 'current' directory as a context to resolve.
Parameters¶
| Parameter | Defaults / Choices | Comments |
|---|---|---|
| _input path |
A path. |
Examples¶
Return Values¶
| Key | Data Type | Description | Returned |
|---|---|---|---|
| _value | boolean | Returns V(True) if the path is absolute, V(False) if it is relative. |
Authors¶
- Ansible Core