ansible/test/integration/targets/loop_control/inner.yml
Strahinja Kustudic a213b9160c Fix extended loop_control with includes (#61231)
* Fix extended loop_control with includes

* Use assert for testing extended loop_control

* fix typo
2019-08-27 12:09:56 -05:00

9 lines
423 B
YAML

- name: assert ansible_loop variables in include_tasks
assert:
that:
- ansible_loop.index == ansible_loop.index0 + 1
- ansible_loop.revindex == ansible_loop.revindex0 + 1
- ansible_loop.first == {{ ansible_loop.index == 1 }}
- ansible_loop.last == {{ ansible_loop.index == ansible_loop.length }}
- ansible_loop.length == 3
- ansible_loop.allitems|join(',') == 'first,second,third'