# Splitting data, or work, across workers

**URL:** <https://forum.ansible.com/t/splitting-data-or-work-across-workers/19429>\
**Category:** Ansible Project\
**Created:** [October 4, 2015, 3:53am UTC](https://forum.ansible.com/t/splitting-data-or-work-across-workers/19429 "2015-10-04T03:53:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam\_Zhang](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@Sam\_Zhang](https://forum.ansible.com/u/Sam_Zhang)\
**Post date:** [October 4, 2015, 3:53am UTC](https://forum.ansible.com/t/splitting-data-or-work-across-workers/19429/1 "2015-10-04T03:53:39Z")

</div>

Hi folks,

I’m a beginner to Ansible. I’d like to split my data across several hosts. These are EC2 instances that I deployed during an earlier play. I’m not sure whether there’s an idiomatic way, or a module, that can handle this.

The easiest thing would be to have a module, say “split\_file”, that takes a single file and splits it across my hosts.

The next best thing, and much more flexible, would be to have a counter that increments for each host. Assuming I have already split my data into my number of workers, I would like to be able to say within each worker task:
