ansible.builtin.path_join (v2.16.0) — filter

Join one or more path components

| "added in version" 2.10 of ansible.builtin"

Authors: Anthony Bourguignon (@Toniob)

Install Ansible via pip

Install with pip install ansible-core==2.16.0

Description

Returns a path obtained by joining one or more path components.

If a path component is an absolute path, then all previous components are ignored and joining continues from the absolute path. See examples for details.

Inputs

    
_input:
    description: A path, or a list of paths.
    elements: str
    required: true
    type: list

Outputs

_value:
  description: The concatenated path.
  type: str