Debian Codegraph @

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

raw
1 - name: test with_items
2 set_fact: "{{ item }}=moo"
3 with_items:
4 - 'foo'
5 - 'bar'
6
7 - name: Undefined var, skipped
8 debug:
9 with_items:
10 - '{{ baz }}'
11 when: false
12
13 - debug: var=foo
14 - debug: var=bar
15
16 - name: verify with_items results
17 assert:
18 that:
19 - "foo == 'moo'"
20 - "bar == 'moo'"