f5networks.f5_modules.abspath filter – return absolute path of a file
Note
This filter plugin is part of the f5networks.f5_modules collection (version 1.39.0).
You might already have this collection installed if you are using the ansible package.
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install f5networks.f5_modules.
To use it in a playbook, specify: f5networks.f5_modules.abspath.
Synopsis
A wrapper around os.path.abspath function to return absolute path of a given file path.
Input
This describes the input of the filter, the value before | f5networks.f5_modules.abspath.
Parameter |
Comments |
|---|---|
A file path |
Examples
# use filepath to install with absolute path
- name: Install AS3 package if missing
bigip_lx_package:
package: "files/f5-appsvcs-3.36.1-1.noarch.rpm" | abspath
Return Value
Key |
Description |
|---|---|
The absolute path to given file Returned: success |