[ovirt-users] Re: nested item with ovirt_vm_facts ansible module

2018-11-15 Thread Nathanaël Blanchet
Hello Lucie, thank you,  that's perfect! I tried all syntaxes before , that is to say * name2.msg[item.1] * name2.msg[item[1]] * name2.msg.item.1 * name2.msg.item.[1] but I nerver thought to change the dict item from [ '0', '1'] to [ 0, 1]. Now it works with the two first options Le 1

[ovirt-users] Re: nested item with ovirt_vm_facts ansible module

2018-11-15 Thread Lucie Leistnerova
Hello Nathanaël, On 11/14/18 7:58 PM, Nathanaël Blanchet wrote: I try to get  a list for all vms : "vm_name : description : id " A simple loop works:    - debug:     msg: "{{ ovirt_vms | map(attribute='snapshots') | list }}"   register: snapshotid2   tags: snapshots2     - debug: