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

Split a Windows path by the drive letter

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

Authors: ansible core team

Install Ansible via pip

Install with pip install ansible-core==2.16.0

Description

Returns a list with the first component being the drive letter and the second, the rest of the path.

Inputs

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

Outputs

_value:
  description: List in which the first element is the drive letter and the second
    the rest of the path.
  elements: str
  type: list