ACI - Using CSV import to map out variables to be consumed by playbook.

Hello All,

I am using a module CSV to FACTS that takes in a CSV and converts it to dictionary. I am trying to iterate over the dictionary and map them to variables and these variables will be used in the playbook.

Question: how to loop through the dictionary that is created by CSV_TO_FACTS Module and map them to a variable?

Here is my YML script:

Hi Tariq,

What version of Ansible are you using? I am using the CSV module to do exactly what you are doing, but it’s only available in 2.8.

Thanks,
Thomas