roles/common: Specify default apt_mirror for fallback in sources.list template

New hosts often fail due to not having an apt_mirror, because there
isn't one defined for their group and their host_vars haven't over-
ridden it.

We want new hosts to deploy successfully, so let's just use a default
apt_mirror if there isn't one defined. Rather have a slow mirror than
a failed deployment. And in any case, Linode can download from KENET's
mirror at 10MB/sec. ;)

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2015-06-04 21:57:11 +03:00
parent fe765f5d3a
commit ae10677b65
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
1 changed files with 2 additions and 0 deletions

View File

@ -1,3 +1,5 @@
{% set apt_mirror = apt_mirror | default("ubuntu.mirror.ac.ke") %}
#############################################################
################### OFFICIAL UBUNTU REPOS ###################
#############################################################