--- - name: install kernel headers and dkms with_items: - linux-headers-amd64 - dkms apt: name: "{{ item }}" state: present