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

gets the common path

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

Authors: Shivam Durgbuns

Install Ansible via pip

Install with pip install ansible-core==2.16.0

Description

Returns the longest common path from the given list of paths.

Inputs

    
_input:
    description: A list of paths.
    elements: path
    required: true
    type: list

Outputs

_value:
  description: The longest common path from the given list of paths.
  type: path

See also