[ansible-project] Re: Using with_subelements, cannot reference dict item's key (v 2.2.0)

2016-10-13 Thread Slavek Jurkowski
Joanna, Did you find any solution to this? I'm facing the same issue and it sure sucks! Thanks! On Wednesday, June 29, 2016 at 1:43:39 PM UTC-5, Joanna Delaporte wrote: > > Here's my version: ansible 2.2.0 (devel 87928ff56b) last updated > 2016/06/22 13:32:23 (GMT -500) > > I'm not sure if thi

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

2016-10-13 Thread Slavek Jurkowski
Hi Peter, Did you find a solution to this? I'm facing the same issue and it sure sucks! Thanks On Wednesday, April 6, 2016 at 5:47:01 PM UTC-5, Peter Thorson wrote: > > when using with_dict, item.key retrieves the dict key and item.value > retrieves the value. > > however, when using with_sub

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

2016-10-13 Thread Slavek Jurkowski
re appear to be a bunch of one-off non-interoperable looping > constructs designed for very narrow purposes. This is easily the most > frustrating aspect of using Ansible for anything non-trivial. > > On Thursday, October 13, 2016 at 10:10:32 AM UTC-5, Slavek Jurkowski wrote: &g

Re: [ansible-project] Using with_subelements, cannot reference dict item's key (v 2.2.0)

2016-10-13 Thread Slavek Jurkowski
> > tasks: > - authorized_key: user=item.0.name key="{{ item.1 }}" > with_subelements: > - "{{ users }}" > - authorized_keys > On Oct 13, 2016, at 1:14 PM, Joanna Delaporte > wrote: > > Slavek, > > I converted my dicts to lists. :P It

Re: [ansible-project] Using with_subelements, cannot reference dict item's key (v 2.2.0)

2016-11-07 Thread Slavek Jurkowski
yes you are right.. my code example wasn't tested in this thread. My actual use case does have the brackets. On Monday, November 7, 2016 at 12:03:58 PM UTC-6, Guy Matz wrote: > > I think you want {{ item.0.name }} > > On Thu, Oct 13, 2016 at 2:21 PM, Slavek Jurkowski > wr