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

Commit

Permalink
Update loop_nested.yml
Browse files Browse the repository at this point in the history
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])
```
  • Loading branch information
giner authored Oct 2, 2019
1 parent 945b1c5 commit b7ad1ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion language_features/loop_nested.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
tasks:
- shell: echo "nested test a={{ item[0] }} b={{ item[1] }}"
with_nested:
- listvar1
- "{{ listvar1 }}"
- [ 1, 2, 3 ]

0 comments on commit b7ad1ed

Please sign in to comment.