You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lots of places (including Michael DeHaan's posts, [1]) claim that this works:
name: Index into the item
debug: msg="{{item.0}}"
Same with item[0]
with_items:
[ 'Foo', 1 ]
[ 'Bar', 2 ]
It doesn't in 1.3.3. {{item}} is always the first thing in the list, {{item.0}} ends up as being the first char (in this case) of the first colum: 'F', 'B'.
Note that the dictionary version still works:
name: Index into the item
debug: msg="{{item.key}}"
with_items:
This is not a regression but in fact a feature, because if you supply two lists of packages it will install them all in one and has been the case for some time.
Stop by the list if you have questions (you could also write your own lookup plugin if you wanted different behavior).
Lots of places (including Michael DeHaan's posts, [1]) claim that this works:
debug: msg="{{item.0}}"
Same with item[0]
with_items:It doesn't in 1.3.3. {{item}} is always the first thing in the list, {{item.0}} ends up as being the first char (in this case) of the first colum: 'F', 'B'.
Note that the dictionary version still works:
debug: msg="{{item.key}}"
with_items:
I guess that's a regression?
1: https://coderwall.com/p/uaeeug
The text was updated successfully, but these errors were encountered: