ansible/test/integration/targets/lookup_items/tasks/main.yml
Matt Martz 35809806d3
Remove incidental_timezone (#72063)
* Add explicit coverage for templated undefined with_items element

* ci_complete ci_coverage

* Remove incidental_timezone

* ci_complete ci_coverage
2020-10-02 16:56:31 -05:00

20 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'"