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

union of lists

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

Authors: Brian Coca (@bcoca)

Install Ansible via pip

Install with pip install ansible-core==2.16.5

Description

Provide a unique list of all the elements of two lists.

Items in the resulting list are returned in arbitrary order.

Inputs

    
_input:
    description: A list.
    required: true
    type: list

_second_list:
    description: A list.
    required: true
    type: list

Outputs

_value:
  description: A unique list of all the elements from both lists.
  type: list

See also