Very quick with_items_sequence
lookup plugin. I needed the ability to create a list of workers on a remoter server, based on the structure these workers could be on differrent autoscale groups, and based on size different worker counts per instance. My playbook creates docker containers that are run via supervisor, but you have to have unique names for each of the containers if you want to have more instances, and I couldn't find a clean way to do this without a new lookup plugin.
Run the playbook to test with:
ansible-playbook -i localhost, playbook.yml
Note: This was thrown togehter very quickly, I'll hopfully have some time to expand this plugin with proper documention and error handling.