Re: [ansible-project] Access dict key when using with_subelements

2016-10-13 Thread Slavek Jurkowski
Thanks for the reply. i agree..I just converted my dict in the same way..Just wanted to check if there was something better out there that anyone has found :P Slavek > On Oct 13, 2016, at 11:24 AM, Peter Thorson wrote: > > I have been using a horrible hacky workaround, specifically, adding th

[ansible-project] Access dict key when using with_subelements

2016-04-06 Thread Peter Thorson
when using with_dict, item.key retrieves the dict key and item.value retrieves the value. however, when using with_subelements and having the first item being looped over be a dict, item.0 seems to return only the value. Is there a way concrete example: vars: users: bob: authorized