--- - name: Install backports source list template: src: backports-source.list dest: /etc/apt/sources.list.d/backports.list owner: root group: root mode: 0644 notify: apt update - meta: flush_handlers - name: Install backports kernel apt: name: linux-image-amd64 state: latest default_release: "{{ ansible_facts['distribution_release'] }}-backports" when: ansible_facts['architecture'] == "x86_64" and ansible_facts['distribution_release'] != "bookworm"