Hi,
Try this:
{{ vm_list.virtual_machines[vmname].uuid }}
kind regards
Pshem
On Tue, 21 Nov 2017 at 04:11 Josu Vilda <[email protected]> wrote:
> Hi,
>
> I have a problem with variables.
>
> this is correct:
> .....
> - debug:
> msg: "{{ vm_list.virtual_machines.SRV1.uuid }}"
> ....
>
>
>
> but, i need:
>
> .....
> register: vmname
> - debug:
> msg: "{{ vm_list.virtual_machines.{{ vmname }}.uuid }}"
>
> ....
>
> how do i have to do it?
>
> thx
>
> --
> 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/9b587921-51c1-42c0-8684-cb3fed56f454%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/9b587921-51c1-42c0-8684-cb3fed56f454%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/CAEaZiRXRmkPb8G39MY%2B2dZi_Su_V3S8EBRdvPAY-1VmGJDo5Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.