summaryrefslogtreecommitdiff
path: root/roles/apt-repo
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-09-28 21:39:00 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-09-28 21:39:00 +0200
commit68682f4e442de86161bd6ed5e74c304e888c188d (patch)
treed5ffb4bda4ba1e4c1caf30f28b849d250e9cdd8d /roles/apt-repo
parentcore/base: add ethtool (diff)
prepare for debian bullseye
Diffstat (limited to 'roles/apt-repo')
-rw-r--r--roles/apt-repo/base/templates/Debian.list.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/apt-repo/base/templates/Debian.list.j2 b/roles/apt-repo/base/templates/Debian.list.j2
index a3cfae8a..61b4b164 100644
--- a/roles/apt-repo/base/templates/Debian.list.j2
+++ b/roles/apt-repo/base/templates/Debian.list.j2
@@ -1,3 +1,7 @@
deb http://{{ apt_repo_providers[apt_repo_provider].debian.host }}{{ apt_repo_providers[apt_repo_provider].debian.path }} {{ ansible_distribution_release }} {{ apt_repo_components | default(apt_repo_base_components.debian) | join(' ') }}
deb http://{{ apt_repo_providers[apt_repo_provider].debian.host }}{{ apt_repo_providers[apt_repo_provider].debian.path }} {{ ansible_distribution_release }}-updates {{ apt_repo_components | default(apt_repo_base_components.debian) | join(' ') }}
+{% if (ansible_distribution_major_version | int) <= 10 %}
deb http://{{ apt_repo_providers[apt_repo_provider].debian_security.host }}{{ apt_repo_providers[apt_repo_provider].debian_security.path }} {{ ansible_distribution_release }}/updates {{ apt_repo_components | default(apt_repo_base_components.debian) | join(' ') }}
+{% else %}
+deb http://{{ apt_repo_providers[apt_repo_provider].debian_security.host }}{{ apt_repo_providers[apt_repo_provider].debian_security.path }} {{ ansible_distribution_release }}-security {{ apt_repo_components | default(apt_repo_base_components.debian) | join(' ') }}
+{% endif %}