Sincerely thanks.

El martes, 21 de noviembre de 2017, 8:32:58 (UTC+1), Pshem Kowalczyk 
escribió:
>
> Hi,
>
> Try this:
>
> {{ vm_list.virtual_machines[vmname].uuid }}
>
> kind regards
> Pshem
>
>
> On Tue, 21 Nov 2017 at 04:11 Josu Vilda <[email protected] <javascript:>> 
> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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/e3346207-07a7-4a7f-8555-483a4a62143e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to