15 lines
231 B
YAML
15 lines
231 B
YAML
|
- name: test with_items
|
||
|
set_fact: "{{ item }}=moo"
|
||
|
with_items:
|
||
|
- 'foo'
|
||
|
- 'bar'
|
||
|
|
||
|
- debug: var=foo
|
||
|
- debug: var=bar
|
||
|
|
||
|
- name: verify with_items results
|
||
|
assert:
|
||
|
that:
|
||
|
- "foo == 'moo'"
|
||
|
- "bar == 'moo'"
|