Re: [ansible-project] Problem with variables variables

2017-11-21 Thread Josu Vilda
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 > wrote: > >> Hi, >> >> I have a

Re: [ansible-project] Problem with variables variables

2017-11-20 Thread Pshem Kowalczyk
Hi, Try this: {{ vm_list.virtual_machines[vmname].uuid }} kind regards Pshem On Tue, 21 Nov 2017 at 04:11 Josu Vilda wrote: > Hi, > > I have a problem with variables. > > this is correct: > . > - debug: > msg: "{{ vm_list.virtual_machines.SRV1.uuid }}" >

[ansible-project] Problem with variables variables

2017-11-20 Thread Josu Vilda
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 --