# ansible.builtin.difference
Provide a unique list of all the elements of the first list that do not appear in the second one.

## Examples
```yml
# return the elements of list1 not in list2
# list1: [1, 2, 5, 1, 3, 4, 10]
# list2: [1, 2, 3, 4, 5, 11, 99]
{{ list1 | difference(list2) }}
# => [10]
```