Hi,

I would like to do something like the example in Looping over Subelements 
<http://docs.ansible.com/ansible/playbooks_loops.html#looping-over-subelements> 
but 
using a hash instead of a list.

---
users:
 demo:
   name: alice
   authorized:
 - /tmp/alice/onekey.pub
 - /tmp/alice/twokey.pub
 admin:
 name: bob
 authorized:
 - /tmp/bob/id_rsa.pub

I couldn't make it work. Is it even possible? Is there any alternative to 
loop over a hash subelements?

I'm using a hash because in other tasks I need to use an specific item 
value: {{ users.demo.name }}

Thank you for your time.

-- 
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/1c16fc38-fdd9-4d5e-854b-de9b03ad51bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to