Sometimes we need to read a list of files, a list of lines, a list of directories or other list, which we need to use some parameter to read those list. With Ansible we have a lot of different kind of options to do that, sometimes looks complex, due to the reason to have many ways to do the same thing, but lets uncomplicate that.
How I said Ansible support many mechanism to interact over loops, the most common is
with_items, the documentation with all the avalable option is here.
Let's see some good way and option, to review and remember later.