1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/examples/playbooks/loop_nested.yml
Michael DeHaan df9e716208 Fix example
2013-03-11 23:37:29 -04:00

10 lines
269 B
YAML

---
# this is a trivial example of how to do a nested loop.
- hosts: all
tasks:
- shell: echo "nested test a=${item[0]} b=${item[1]} c=${item[2]}"
with_nested:
- [ 'red', 'blue', 'green' ]
- [ 1, 2, 3 ]
- [ 'up', 'down', 'strange']