W3cubDocs

/Ansible

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.37.1).

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

Input

string / required

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

Return value

string

The absolute path to given file

Returned: success

Authors

  • Tim Rupp

© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/f5networks/f5_modules/abspath_filter.html