From 2c7ed0729b284dfd8fa2d6be25591b2099d4ef75 Mon Sep 17 00:00:00 2001 From: Stanislav German-Evtushenko Date: Wed, 2 Oct 2019 16:09:58 +0900 Subject: [PATCH] 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]) ``` --- language_features/loop_nested.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/language_features/loop_nested.yml b/language_features/loop_nested.yml index 2741ea5b5..e7bcfcdf6 100644 --- a/language_features/loop_nested.yml +++ b/language_features/loop_nested.yml @@ -20,5 +20,5 @@ tasks: - shell: echo "nested test a={{ item[0] }} b={{ item[1] }}" with_nested: - - listvar1 + - "{{ listvar1 }}" - [ 1, 2, 3 ]