ansible/roles/common/templates/sources.list.j2

27 lines
1.1 KiB
Django/Jinja

# {{ ansible_managed }}
{% if debian_source_repos | default(false) %}
{% set SRC = "" %}
{% else %}
{% set SRC = "# " %}
{% endif %}
{% set components = "main contrib non-free-firmware" %}
deb {{ debian_repourl }} {{ ansible_distribution_release }} {{ components }}
{{ SRC }}deb-src {{ debian_repourl }} {{ ansible_distribution_release }} {{ components }}
#
# Updates
deb {{ debian_repourl }} {{ ansible_distribution_release }}-updates {{ components }}
{{ SRC }}deb-src {{ debian_repourl }} {{ ansible_distribution_release }}-updates {{ components }}
#
# Backports
deb {{ debian_repourl }} {{ ansible_distribution_release }}-backports {{ components }}
{{ SRC }}deb-src {{ debian_repourl }} {{ ansible_distribution_release }}-backports {{ components }}
#
# Security patches
deb {{ debian_securityurl }} {{ ansible_distribution_release }}-security {{ components }}
{{ SRC }}deb-src {{ debian_securityurl }} {{ ansible_distribution_release }}-security {{ components }}
# Testing/Unstable repos
deb {{ debian_repourl }} testing {{ components }}
deb {{ debian_repourl }} sid {{ components }}