hello , i need to read some value from a .CSV file with ; separator
for example : param1;value1
param2;value2
i want to write them in a file using ansible like this : param1=value1
param2=value2
thank you in advance .
hello , i need to read some value from a .CSV file with ; separator
for example : param1;value1
param2;value2
i want to write them in a file using ansible like this : param1=value1
param2=value2
thank you in advance .
How about the csv lookup plugin?
http://docs.ansible.com/ansible/playbooks_lookups.html#the-csv-file-lookup
You can write content to a file by registering a variable and then using the content argument with the copy module.
Hope this helps,
Jon