Alan Orth
ae10677b65
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>
19 lines
863 B
Django/Jinja
19 lines
863 B
Django/Jinja
{% set apt_mirror = apt_mirror | default("ubuntu.mirror.ac.ke") %}
|
|
|
|
#############################################################
|
|
################### OFFICIAL UBUNTU REPOS ###################
|
|
#############################################################
|
|
|
|
###### Ubuntu Main Repos
|
|
deb http://{{ apt_mirror }}/ubuntu/ {{ ansible_distribution_release }} main restricted universe multiverse
|
|
|
|
###### Ubuntu Update Repos
|
|
deb http://{{ apt_mirror }}/ubuntu/ {{ ansible_distribution_release }}-security main restricted universe multiverse
|
|
deb http://{{ apt_mirror }}/ubuntu/ {{ ansible_distribution_release }}-updates main restricted universe multiverse
|
|
|
|
###### Ubuntu Partner Repo
|
|
deb http://archive.canonical.com/ubuntu {{ ansible_distribution_release }} partner
|
|
|
|
###### Ubuntu Extras Repo
|
|
deb http://extras.ubuntu.com/ubuntu {{ ansible_distribution_release }} main
|