From 9445541f515cd72a13c98d495882501b747fca60 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Wed, 25 Apr 2018 18:09:11 +0300 Subject: [PATCH] roles/common: Always use security.ubuntu.com Vanilla Ubuntu (and Debian actually) defaults to using the official mirror for security updates rather than country or regional mirrors. Also, for what it's worth, Ubuntu mirrors didn't always sync these security archives. I'd prefer to stay closer to vanilla Ubuntu but also it kinda makes sense to get security updates from the official source than a mirror (in case of delay or errors). --- 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 1508a3a..3d630c3 100644 --- a/roles/common/templates/sources.list.j2 +++ b/roles/common/templates/sources.list.j2 @@ -2,8 +2,8 @@ {% set apt_mirror = apt_mirror | default("ubuntu.mirror.ac.ke") %} deb http://{{ apt_mirror }}/ubuntu/ {{ ansible_distribution_release }} main restricted universe multiverse -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 +deb http://security.ubuntu.com/ubuntu/ {{ ansible_distribution_release }}-security main restricted universe multiverse {% else %} {% set apt_mirror = apt_mirror | default('deb.debian.org') %}