{% set debian_distr = 'buster' %}
{% elif ansible_facts.distribution_major_version == '11' %}
{% set debian_distr = 'bullseye' %}
+{% elif ansible_facts.distribution_major_version == '12' %}
+{% set debian_distr = 'bookworm' %}
{% endif %}
-deb {{ debian_mirror }} {{ debian_distr }} main contrib non-free
-deb {{ debian_mirror }} {{ debian_distr }}-updates main contrib non-free
-deb {{ debian_mirror }}-security {{ debian_distr }}-security main contrib non-free
-#deb {{ debian_mirror }} {{ debian_distr }}-backports main contrib non-free
+deb {{ debian_mirror }} {{ debian_distr }} main contrib non-free{% if ansible_facts.distribution_major_version == '12' %} non-free-firmware{% endif %}
+deb {{ debian_mirror }} {{ debian_distr }}-updates main contrib non-free{% if ansible_facts.distribution_major_version == '12' %} non-free-firmware{% endif %}
+
+deb {{ debian_mirror }}-security {{ debian_distr }}-security main contrib non-free{% if ansible_facts.distribution_major_version == '12' %} non-free-firmware{% endif %}
+#deb {{ debian_mirror }} {{ debian_distr }}-backports main contrib non-free{% if ansible_facts.distribution_major_version == '12' %} non-free-firmware{% endif %}
{% if inventory_hostname in ('localhost', 'iskra-aviel.phdru.name') %}
#deb {{ debian_mirror }}-multimedia {{ debian_distr }} main non-free