Hi Henning,

On Thu, 2015-01-29 at 06:43 -0800, Henning Eggers wrote: 

> I think you might want to use with_subelements instead of with_nested.

> http://docs.ansible.com/playbooks_loops.html#looping-over-subelements

thanks for your advice.

Unfortunately, I think 'with_subelements' is not powerful enough to do
what I want.
As explained in the documentation:
"Subelements walks a list of hashes (aka dictionaries) and then
traverses a list with a given key inside of those records."

What I want to do is a bit different. I need to extract information from
the 'hostvars' hash and I only want to extract the information for hosts
belonging to a specific group (i.e. groups["backup-targets"]).

Regards,
Tadej 

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1422795437.14300.8.camel%40tlinux64.
For more options, visit https://groups.google.com/d/optout.

Reply via email to