Thanks .. You mean with the "loop" enabled .. It did not work in both modes.

I am looking for a way so that this particular play will process  the 
variables(items) under *n_america   in *
*vars_files : *
*    - vars/myvars.yml*


On Tuesday, March 14, 2023 at 6:39:53 PM UTC+5:30 Avinash Jadhav wrote:

> Hi 
>
>   you can try this way 
>
>>  
>
>
>> - name: printing the details of montreal
>>   debug:
>>
>     msg: "{{ item.value.city }}"
>
>
>>   loop: "{{ world | subelements('n_america') | dict2items }}"
>>
>

-- 
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/c20b94cc-6be1-419f-a258-a2b2474548c0n%40googlegroups.com.

Reply via email to