You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/examples/playbooks/loop_nested.yml

11 lines
269 B
YAML

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