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
Hi,
I have a problem with variables.
this is correct:
`
…
but, i need:
`
…
register: vmname
…
`
how do i have to do it?
thx
Hi,
Try this:
{{ vm_list.virtual_machines[vmname].uuid }}
kind regards
Pshem