role_apt/templates/debian.sources.list.j2

22 lines
758 B
Django/Jinja

# {{ ansible_managed }}
{% if apt_distribution_release == "sid" %}
Types: deb
URIs: https://deb.debian.org/debian
Suites: {{ apt_distribution_release }}
Components: {{ apt_distribution_sections }}
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
{% else %}
Types: deb
URIs: https://deb.debian.org/debian
Suites: {{ apt_distribution_release }} {{ apt_distribution_release }}-updates {{ apt_distribution_release }}-backports
Components: {{ apt_distribution_sections }}
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Types: deb
URIs: http://security.debian.org/debian-security
Suites: {{ apt_distribution_release }}-security
Components: {{ apt_distribution_sections }}
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
{% endif %}