ansible/roles/baseconfig/templates/apt/sources.list.j2

31 lines
966 B
Text
Raw Normal View History

2019-02-19 11:10:05 +01:00
# {{ ansible_managed }}
{# #}
{# Default mirror #}
{% if debian_mirror is not defined %}
{% set debian_mirror = 'http://ftp.fr.debian.org/debian' %}
{% endif %}
{# #}
{# Default security mirror #}
{% if debian_security_mirror is not defined %}
{% set debian_security_mirror = 'http://security.debian.org' %}
{% endif %}
{# #}
{# Default components #}
{% if debian_components is not defined %}
{% set debian_components = 'main contrib' %}
{% endif %}
# Classic updates
deb {{ debian_mirror }} {{ ansible_distribution_release }} {{ debian_components }}
# Frequent updates
deb {{ debian_mirror }} {{ ansible_distribution_release }}-updates {{ debian_components }}
# Security updates
deb {{ debian_security_mirror }} {{ ansible_distribution_release }}/updates {{ debian_components }}
{% if debian_backport is defined and debian_backport %}
# Backports
deb {{ debian_security_mirror }} {{ ansible_distribution_release }}-backports {{ debian_components }}
{% endif %}