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: