2013-03-11 22:49:01 +01:00
|
|
|
---
|
|
|
|
# this is a trivial example of how to do a nested loop.
|
|
|
|
|
|
|
|
- hosts: all
|
|
|
|
tasks:
|
2013-03-12 04:37:29 +01:00
|
|
|
- shell: echo "nested test a=${item[0]} b=${item[1]} c=${item[2]}"
|
2013-03-11 22:49:01 +01:00
|
|
|
with_nested:
|
|
|
|
- [ 'red', 'blue', 'green' ]
|
|
|
|
- [ 1, 2, 3 ]
|
|
|
|
- [ 'up', 'down', 'strange']
|