|
|
@ -269,8 +269,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
- name: test a with_items loop using a variable with a missing attribute
|
|
|
|
- name: test a with_items loop using a variable with a missing attribute
|
|
|
|
debug: var=item
|
|
|
|
debug: var=item
|
|
|
|
with_items: foo.results
|
|
|
|
with_items: cond_bad_attribute.results
|
|
|
|
when: foo is defined and 'results' in foo
|
|
|
|
when: cond_bad_attribute is defined and 'results' in cond_bad_attribute
|
|
|
|
register: result
|
|
|
|
register: result
|
|
|
|
|
|
|
|
|
|
|
|
- name: assert the task was skipped
|
|
|
|
- name: assert the task was skipped
|
|
|
@ -281,7 +281,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
- name: test a with_items loop skipping a single item
|
|
|
|
- name: test a with_items loop skipping a single item
|
|
|
|
debug: var=item
|
|
|
|
debug: var=item
|
|
|
|
with_items: items.results
|
|
|
|
with_items: cond_list_of_items.results
|
|
|
|
when: item != 'b'
|
|
|
|
when: item != 'b'
|
|
|
|
register: result
|
|
|
|
register: result
|
|
|
|
|
|
|
|
|
|
|
|