You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/lookup_items/tasks/main.yml

21 lines
318 B
YAML

- name: test with_items
set_fact: "{{ item }}=moo"
with_items:
- 'foo'
- 'bar'
- name: Undefined var, skipped
debug:
with_items:
- '{{ baz }}'
when: false
- debug: var=foo
- debug: var=bar
- name: verify with_items results
assert:
that:
- "foo == 'moo'"
- "bar == 'moo'"