For more information regarding the different Ansible looping constructs, please consult the following URL:
https://docs.ansible.com/ansible/latest/user_guide/playbooks_loops.html