diff --git a/roles/configure-mirrors/templates/apt/etc/apt/sources.list.d/security.list.j2 b/roles/configure-mirrors/templates/apt/etc/apt/sources.list.d/security.list.j2 index 9f85d5973..71bdabdbd 100644 --- a/roles/configure-mirrors/templates/apt/etc/apt/sources.list.d/security.list.j2 +++ b/roles/configure-mirrors/templates/apt/etc/apt/sources.list.d/security.list.j2 @@ -1,3 +1,3 @@ # {{ ansible_managed }} -deb {{ security_mirror }} {{ ansible_distribution_release }} main -deb-src {{ security_mirror }} {{ ansible_distribution_release }} main +deb {{ security_mirror }} {{ ansible_distribution_release }}{% if ansible_distribution_release not in ['jessie', 'stretch', 'buster'] %}-security{% endif %} main +deb-src {{ security_mirror }} {{ ansible_distribution_release }}{% if ansible_distribution_release not in ['jessie', 'stretch', 'buster'] %}-security{% endif %} main