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

different items from two 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 unique to each list.

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 the elements from two lists that are unique to each
    one.
  type: list

See also