[apt] Debian Security changed its naming convention since Bullseye
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>certbot_on_virtu
parent
712b421075
commit
1e97a98491
|
@ -1,12 +1,14 @@
|
||||||
{{ ansible_header | comment }}
|
{{ ansible_header | comment }}
|
||||||
|
|
||||||
{% if ansible_distribution == "Debian" %}
|
{% if ansible_distribution == "Debian" %}
|
||||||
{% if ansible_distribution_release != "bullseye" %}
|
|
||||||
{# Debian security does not exist yet for bullseye #}
|
|
||||||
# Mises à jour de sécurité
|
# Mises à jour de sécurité
|
||||||
|
{% if ansible_distribution_major_version|int < 11 %}
|
||||||
|
{# Debian security changed its naming convention in Bullseye #}
|
||||||
deb {{ debian_mirror }}-security {{ ansible_distribution_release }}/updates {{ debian_components }}
|
deb {{ debian_mirror }}-security {{ ansible_distribution_release }}/updates {{ debian_components }}
|
||||||
|
{% else %}
|
||||||
|
deb {{ debian_mirror }}-security {{ ansible_distribution_release }}-security {{ debian_components }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
# Dépôt classique
|
# Dépôt classique
|
||||||
deb {{ debian_mirror }} {{ ansible_distribution_release }} {{ debian_components }}
|
deb {{ debian_mirror }} {{ ansible_distribution_release }} {{ debian_components }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue