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 <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2015-11-30 09:34:16 +02:00
parent c0431d4247
commit 5f71991259
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -21,7 +21,7 @@ deb http://archive.canonical.com/ubuntu {{ ansible_distribution_release }} partn
deb http://extras.ubuntu.com/ubuntu {{ ansible_distribution_release }} main deb http://extras.ubuntu.com/ubuntu {{ ansible_distribution_release }} main
{% endif %} {% endif %}
{% else %} {% 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://{{ apt_mirror }}/debian/ {{ ansible_distribution_release }} main contrib non-free
deb http://security.debian.org/ {{ ansible_distribution_release }}/updates main contrib non-free deb http://security.debian.org/ {{ ansible_distribution_release }}/updates main contrib non-free