# Proper way to handle host data coming from multiple CSV files

**URL:** <https://forum.ansible.com/t/proper-way-to-handle-host-data-coming-from-multiple-csv-files/20535>\
**Category:** Ansible Project\
**Created:** [February 11, 2016, 10:46am UTC](https://forum.ansible.com/t/proper-way-to-handle-host-data-coming-from-multiple-csv-files/20535 "2016-02-11T10:46:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Con\_Hennessy](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@Con\_Hennessy](https://forum.ansible.com/u/Con_Hennessy)\
**Post date:** [February 11, 2016, 10:46am UTC](https://forum.ansible.com/t/proper-way-to-handle-host-data-coming-from-multiple-csv-files/20535/1 "2016-02-11T10:46:23Z")

</div>

Hi,  
I’m new to ansible and coming from a system where we have multiple CSV files defining  
projects, hosts, and users which I cannot easily change.

If I want to run certain commands I need to gather info from several files.

Is there is recommended way of doing this ?

I have been looking at the dynamic inventory, but I was hoping to us something better than  
passing environment variables to the inventory.

(Actually I’m a python guy and I was hoping that the inventory module could be written in python  
and actually called as a module internally by ansible rather than an executable script.)

Any direction or pointers would be appreciated,  
Con
