ansible.builtin.split (v2.15.2) — filter

split a string into a list

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

Authors: unknown

Install Ansible via pip

Install with pip install ansible-core==2.15.2

Description

Using Python's text object method C(split) we turn strings into lists via a 'splitting character'.

Inputs

    
_input:
    description: A string to split.
    required: true
    type: str

_split_string:
    default: ' '
    description: A string on which to split the original.
    type: str

Outputs

_value:
  description: List of substrings split from the original.
  elements: str
  type: list