Debian Codegraph @

test/integration/targets/module_defaults/test_templated_defaults.yml

raw
1 - hosts: localhost
2 gather_facts: no
3 tasks:
4 - name: ensure that individual module defaults expand correctly from a template
5 module_defaults:
6 ansible.builtin.ping: "{{ ping_defaults }}"
7 vars:
8 ping_defaults:
9 data: individual
10 ansible.builtin.ping:
11 register: individual_result
12
13 - name: ensure that group module defaults expand correctly from a template
14 module_defaults:
15 group/testgroup: "{{ testgroup_defaults }}"
16 vars:
17 testgroup_defaults:
18 data: group
19 ansible.builtin.ping:
20 register: group_result
21
22 - assert:
23 that:
24 - individual_result.ping == "individual"
25 - group_result.ping == "group"