read a file .CSV from ansible

933 views
Skip to first unread message

mondher khas

unread,
Apr 25, 2016, 10:22:17 AM4/25/16
to Ansible Project
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 .

J Hawkesworth

unread,
Apr 25, 2016, 10:51:12 AM4/25/16
to Ansible Project
How about the csv lookup plugin?


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
Reply all
Reply to author
Forward
0 new messages