diff options
Diffstat (limited to 'test/integration/targets/lookup_items/tasks/main.yml')
-rw-r--r-- | test/integration/targets/lookup_items/tasks/main.yml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/integration/targets/lookup_items/tasks/main.yml b/test/integration/targets/lookup_items/tasks/main.yml new file mode 100644 index 0000000..15a2cf2 --- /dev/null +++ b/test/integration/targets/lookup_items/tasks/main.yml @@ -0,0 +1,20 @@ +- 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'" |