# How to convert a csv file

**URL:** <https://forum.ansible.com/t/how-to-convert-a-csv-file/22931>\
**Category:** Ansible Project\
**Created:** [November 1, 2016, 10:14am UTC](https://forum.ansible.com/t/how-to-convert-a-csv-file/22931 "2016-11-01T10:14:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Takeshi\_Kuramochi](https://avatars.discourse-cdn.com/v4/letter/t/e8c25b/32.png) [@Takeshi\_Kuramochi](https://forum.ansible.com/u/Takeshi_Kuramochi)\
**Post date:** [November 1, 2016, 10:14am UTC](https://forum.ansible.com/t/how-to-convert-a-csv-file/22931/1 "2016-11-01T10:14:39Z")

</div>

Hi Everyone,

I have created a playbook which reads a csv file and converts it into variables then executes the task. My playbook is actually fine – and gives me what I expect to see, but I want to make my csv file format into simpler –something like this:

“command”,“savefile”  
“command”,“savefile”  
“command”,“savefile”  
“command”,“savefile”

My current csv file is like this:
