Array in Ansible

How to read variables in ansible?

Below Example :

Based on your example if you change the playbook similarily to below:

`

Another way you could be as below:

`

Hi Lary,

Thank you so much!

If we want to read vars from some file in the same scenario ?

Then how we will do?

https://docs.ansible.com/ansible/latest/include_vars_module.html