In the file /tasks/dataverse-prereqs.yml these lines could be inserted: - name: apt clean all shell: 'apt clean' when: ansible_os_family == "Debian" right after line 11 to strengthen compatibility with Debian-based systems