--- - hosts: all tasks: - name: apt autoremove become: true ansible.builtin.apt: autoremove: true