Debian Codegraph @

test/integration/targets/lookup_list/tasks/main.yml

raw
1 - name: Set variables to verify lookup_list
2 set_fact: "{{ item if (item is string)|bool else item[0] }}={{ item }}"
3 with_list:
4 - a
5 - [b, c]
6 - d
7
8 - name: Verify lookup_list
9 assert:
10 that:
11 - a is defined
12 - b is defined
13 - c is not defined
14 - d is defined
15 - b is iterable and b is not string
16 - b|length == 2
17 - a == a
18 - b == ['b', 'c']
19 - d == d