That works, but it only shows the info for the first VM.  There are 22 
total.  What I'd like to have is the VM name and list of all of that VMs 
snapshots, so I need to be able to traverse through the output at the VM 
level, then travers that VM's ovirt_snapshots data.

Thanks,
Harry

On Thursday, February 23, 2023 at 2:52:11 PM UTC-5 Rowe, Walter P. (Fed) 
wrote:

>     - name: Show results
>       ansible.builtin.debug:
>         msg: "{{ item }}"
>       loop:
>         - "{{ result.results[0].ovirt_snapshots }}"
>
> Walter
> --
> Walter Rowe, Division Chief
> Infrastructure Services, OISM
> Mobile: 202.355.4123 <(202)%20355-4123>
>
> On Feb 23, 2023, at 2:37 PM, [email protected] <[email protected]> wrote:
>
> Nope.  I get: "list object has no attribute 'ovirt_snapshots'. 
>
> Thanks,
> Harry
>
> On Thursday, February 23, 2023 at 2:34:26 PM UTC-5 Rowe, Walter P. (Fed) 
> wrote:
>
>>     - name: Show results
>>       ansible.builtin.debug:
>>         msg: "{{ item }}"
>>       loop:
>>         - "{{ result.results.ovirt_snapshots }}"
>>
>> How about this?
>>
>> Walter
>>
>>
> -- 
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/b977149b-b0c9-4c62-9579-bec36f041f72n%40googlegroups.com
>  
> <https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fansible-project%2Fb977149b-b0c9-4c62-9579-bec36f041f72n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=05%7C01%7Cwalter.rowe%40nist.gov%7C2b23810d6b6f48ecbf1608db15d5a59d%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C638127779584889772%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2Bd6PvSmY9jj84Hja%2FTfcJAOFz1trEgeZGDF77PqrEKQ%3D&reserved=0>
> .
>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/65bac0a6-5df8-43e9-bd16-1ce0f2cf9610n%40googlegroups.com.

Reply via email to