I recently went down a rabbit hole and discovered list slicing...which allows you to start and stop at specific spots in your lists while looping. That then led me to learn that when looping in ansible you can enable extended loop controls that give you a bunch of extra features!
Demo files are here: https://github.com/gregsowell/ansible...