In Ansible, a collection is the file that defines the list of managed hosts and groups that a playbook targets.