How to use Ansible with_item - linuxhint.com
https://linuxhint.com/ansible-with_itemThe Ansible with_items is a handy plugin to perform loop operations in a playbook. The plugin accepts items and then passes them to the calling module. For example, you can pass a list of packages to install and then give each item in the list to the install task. NOTE: If an item has a nested list, Ansible will flatten it but not recursion.