I am new to ansible. I want to read a var file and then iterate through it. My var file looks like:
Project_name1:
-a
-B
-C
Project_name2:
-aa
-bb
Project_name3:
-ab
Now, my playbook looks like
- name: include the cars and iterate through them
include_vars:
file:project.yml
name:project
loop:"{{project}}"
I am not sure how can i loop through the var file. I want the Ansible to read first var which is Project_name1 and then read all the list. Then read Project_name2 and read it's list and so on.