Yohohohohohooho | Sanrei Aya
Sanrei Aya


Server : LiteSpeed
System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : elvh3918 ( 1528)
PHP Version : 8.2.31
Disable Function : mail
Directory :  /lib/python3.9/site-packages/ansible/plugins/filter/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3.9/site-packages/ansible/plugins/filter/relpath.yml
DOCUMENTATION:
  name: relpath
  author: Jakub Jirutka (@jirutka)
  version_added: "1.7"
  short_description: Make a path relative
  positional: _input, start
  description:
    - Converts the given path to a relative path from the I(start),
      or relative to the directory given in I(start).
  options:
    _input:
      description: A path.
      type: str
      required: true
    start:
      description: The directory the path should be relative to. If not supplied the current working directory will be used.
      type: str

EXAMPLES: |

  # foobar => ../test/me.txt
  testing: "{{ '/tmp/test/me.txt' | relpath('/tmp/other/') }}"
  otherrelpath: "{{ mypath | relpath(mydir) }}"

RETURN:
  _value:
    description: The relative path.
    type: str

Yohohohohohooho | Sanrei Aya