Can you show the task how you try that? On 25 September 2015 at 18:50, Luis Óscar Ramos Carreón < [email protected]> wrote:
> 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 > <https://groups.google.com/d/msgid/ansible-project/1c16fc38-fdd9-4d5e-854b-de9b03ad51bc%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAEhzMJB_qLddYeqmhejQ1UY_dq8hy72q5zaHftnHunmXsA8UmQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
