summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/module_utils/module_utils_common_dict_transformation.yml
blob: 7d961c4c7eb00ebdb56bc5a692ac666f6b4976fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
- 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