ansible.builtin.zip_longest (v2.16.5) — filter

combine list elements, with filler

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

Authors: unknown

Install Ansible via pip

Install with pip install ansible-core==2.16.5

Description

Make an iterator that aggregates elements from each of the iterables. If the iterables are of uneven length, missing values are filled-in with O(fillvalue). Iteration continues until the longest iterable is exhausted.

Inputs

    
_input:
    description: Original list.
    elements: any
    required: true
    type: list

fillvalue:
    description: Filler value to add to output when one of the lists does not contain
      enough elements to match the others.
    type: any

_additional_lists:
    description: Additional list(s).
    elements: any
    required: true
    type: list

Outputs

_value:
  description: List of lists made of elements matching the positions of the input
    lists.
  elements: list
  type: list