Skip to content
This repository was archived by the owner on May 27, 2024. It is now read-only.

Commit 2c7ed07

Browse files
committed
Update loop_nested.yml
Fix the example of referencing a variable for looping with `with_nested`. Before: ``` changed: [localhost] => (item=[u'listvar1', 1]) changed: [localhost] => (item=[u'listvar1', 2]) changed: [localhost] => (item=[u'listvar1', 3]) ``` After: ``` changed: [localhost] => (item=[u'a', 1]) changed: [localhost] => (item=[u'a', 2]) changed: [localhost] => (item=[u'a', 3]) changed: [localhost] => (item=[u'b', 1]) changed: [localhost] => (item=[u'b', 2]) changed: [localhost] => (item=[u'b', 3]) changed: [localhost] => (item=[u'c', 1]) changed: [localhost] => (item=[u'c', 2]) changed: [localhost] => (item=[u'c', 3]) ```
1 parent b505865 commit 2c7ed07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

language_features/loop_nested.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020
tasks:
2121
- shell: echo "nested test a={{ item[0] }} b={{ item[1] }}"
2222
with_nested:
23-
- listvar1
23+
- "{{ listvar1 }}"
2424
- [ 1, 2, 3 ]

0 commit comments

Comments
 (0)