From 5f71991259bb993c87f537518ff334ddbb920b5c Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Mon, 30 Nov 2015 09:34:16 +0200 Subject: [PATCH] roles/common: Use httpredir.debian.org as default Debian mirror Automatically uses the best mirror for your location, see: http://httpredir.debian.org/demo.html Should be much better than any hardcoded default for most hosts. Signed-off-by: Alan Orth --- roles/common/templates/sources.list.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/common/templates/sources.list.j2 b/roles/common/templates/sources.list.j2 index f9bbcf1..7ef5c5a 100644 --- a/roles/common/templates/sources.list.j2 +++ b/roles/common/templates/sources.list.j2 @@ -21,7 +21,7 @@ deb http://archive.canonical.com/ubuntu {{ ansible_distribution_release }} partn deb http://extras.ubuntu.com/ubuntu {{ ansible_distribution_release }} main {% endif %} {% else %} -{% set apt_mirror = apt_mirror | default('debian.mirror.ac.ke') %} +{% set apt_mirror = apt_mirror | default('httpredir.debian.org') %} deb http://{{ apt_mirror }}/debian/ {{ ansible_distribution_release }} main contrib non-free deb http://security.debian.org/ {{ ansible_distribution_release }}/updates main contrib non-free