Re: [ansible-project] Nested looping with hash/dict so I can override values

2014-05-13 Thread David Reagan
Yeah... I'm confused. I found with_nested to be a bit odd in the first place, much less trying to figure out what Petros is adding. I ended up with https://github.com/jerrac/aspects/blob/master/ansible_plugins/lookup_plugins/subdict.pyused at

Re: [ansible-project] Nested looping with hash/dict so I can override values

2014-05-10 Thread 'Petros Moisiadis' via Ansible Project
On 05/10/2014 03:07 AM, Michael DeHaan wrote: tl;dr: is there a way to make with_subelements work with dicts? Or something to that effect? Doesn't sound like you need the nested loop that subelements provides and you'd be happy with

Re: [ansible-project] Nested looping with hash/dict so I can override values

2014-05-09 Thread Michael DeHaan
tl;dr: is there a way to make with_subelements work with dicts? Or something to that effect? Doesn't sound like you need the nested loop that subelements provides and you'd be happy with https://github.com/ansible/ansible/blob/devel/lib/ansible/runner/lookup_plugins/dict.py That is unless you

Re: [ansible-project] Nested looping with hash/dict so I can override values

2014-05-06 Thread David Reagan
So, I took a look at creating a plugin. I copied subelements.py, and modified it to return a dict. See https://gist.github.com/jerrac/8a16e0c1031df89621da I think it will do what I want, I've only done some basic testing. Anyone have any feedback? Should I modify the copyright? I'm pretty sure