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

Make a path relative

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

Authors: Jakub Jirutka (@jirutka)

Install Ansible via pip

Install with pip install ansible-core==2.16.0

Description

Converts the given path to a relative path from the O(start), or relative to the directory given in O(start).

Inputs

    
start:
    description: The directory the path should be relative to. If not supplied the current
      working directory will be used.
    type: str

_input:
    description: A path.
    required: true
    type: str

Outputs

_value:
  description: The relative path.
  type: str