diff --git a/examples/playbooks/loop_nested.yml b/examples/playbooks/loop_nested.yml new file mode 100644 index 00000000000..f0b35a49fd9 --- /dev/null +++ b/examples/playbooks/loop_nested.yml @@ -0,0 +1,10 @@ +--- +# 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']