Commit 0dbfa02f by Michael DeHaan

Example of how to do nested loops. 15 minutes of code :)

parent edc04d61
---
# 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']
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment