mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
760 B
YAML
35 lines
760 B
YAML
4 years ago
|
- hosts: testhost
|
||
|
gather_facts: no
|
||
|
tasks:
|
||
|
- test_recursive_diff:
|
||
|
a:
|
||
|
foo:
|
||
|
bar:
|
||
|
- baz:
|
||
|
qux: ham_sandwich
|
||
|
b:
|
||
|
foo:
|
||
|
bar:
|
||
|
- baz:
|
||
|
qux: turkey_sandwich
|
||
|
register: recursive_diff_diff
|
||
|
|
||
|
- test_recursive_diff:
|
||
|
a:
|
||
|
foo:
|
||
|
bar:
|
||
|
- baz:
|
||
|
qux: ham_sandwich
|
||
|
b:
|
||
|
foo:
|
||
|
bar:
|
||
|
- baz:
|
||
|
qux: ham_sandwich
|
||
|
register: recursive_diff_same
|
||
|
|
||
|
- assert:
|
||
|
that:
|
||
|
- recursive_diff_diff.the_diff is not none
|
||
|
- recursive_diff_diff.the_diff|length == 2
|
||
|
- recursive_diff_same.the_diff is none
|