| Server IP : 157.22.201.140 / Your IP : 216.73.216.74 Web Server : nginx/1.30.1 System : Linux mit.vincode.fvds.ru 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/ansible/plugins/filter/ |
Upload File : |
DOCUMENTATION:
name: split
version_added: 2.11
short_description: split a string into a list
description:
- Using Python's text object method C(split) we turn strings into lists via a 'splitting character'.
notes:
- This is a passthrough to Python's C(str.split).
positional: _input, _split_string
options:
_input:
description: A string to split.
type: str
required: true
_split_string:
description: A string on which to split the original.
type: str
default: ' '
EXAMPLES: |
# listjojo => [ "jojo", "is", "a" ]
listjojo: "{{ 'jojo is a' | split }}"
# listjojocomma => [ "jojo is", "a" ]
listjojocomma: "{{ 'jojo is, a' | split(',') }}"
RETURN:
_value:
description: List of substrings split from the original.
type: list
elements: str