Thanks Vladimir.

This also worked-

  - set_fact: 
      versions: "{{ (lv | json_query('[*].Version') }}"

On Wednesday, 24 June 2020 20:20:01 UTC+5:30, Vladimir Botka wrote:
>
> On Wed, 24 Jun 2020 06:02:02 -0700 (PDT) 
> BIJAY PARIDA <[email protected] <javascript:>> wrote: 
>
> Try this 
>
>   - set_fact: 
>       versions: "{{ lv|map(attribute='Version')|list }}" 
>
> -- 
> Vladimir Botka 
>

-- 
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/ea7b1d01-70bd-4eb3-ad6c-9e7cb6011444o%40googlegroups.com.

Reply via email to