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

split a path into root and file extension

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

Authors: Matt Martz (@sivel)

Install Ansible via pip

Install with pip install ansible-core==2.16.0

Description

Returns a list of two, with the elements consisting of filename root and extension.

Inputs

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

Outputs

_value:
  description: A list consisting of root of the path and the extension.
  elements: str
  type: list