30 lines
966 B
Django/Jinja
30 lines
966 B
Django/Jinja
# {{ 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 %}
|