I am new to Ansible. I want to know how I can read an excel or csv file inside Ansible, store the information in variables and work with those variables.
Actually I want to create VMs. I will use the csv files to get the details (like hostname, partition details, IP details) of the VMs.
If somebody can help me in this regards.
Best Answer
Use read_csv – Read a CSV file module. For example the playbook
with the file
gives