This "solution" is NOT needed anymore since with_dict was introduced in ansible version 1.5 ( Feb 2014 ).
With the variable from your example ...
name: my loop action: shell echo ${item.name} with_dict: var
... will work perfectly.
See the documentation chapter Looping over Hashes
This "solution" is NOT needed anymore since with_dict was introduced in ansible version 1.5 ( Feb 2014 ).
With the variable from your example ...
... will work perfectly.
See the documentation chapter Looping over Hashes