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

24 lines
980 B
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 main contrib non- free