You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
442 B
25 lines
442 B
---
|
|
|
|
- name: 'Set Theory Filters: union operates on set of structured objects'
|
|
gather_facts: no
|
|
hosts: localhost
|
|
tasks:
|
|
- block:
|
|
- debug:
|
|
var: output
|
|
- assert:
|
|
that:
|
|
- output|length == 3
|
|
vars:
|
|
output: "{{ input1|union(input2) }}"
|
|
input1:
|
|
- id: 1
|
|
name: john
|
|
- id: 3
|
|
name: smith
|
|
input2:
|
|
- id: 1
|
|
name: john
|
|
- id: 2
|
|
name: jane
|
|
|
|
|