From 1856486700e46be875fd2e10d04fb29138972fa8 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 25 May 2019 11:28:14 +0100 Subject: [PATCH] Use UK-optimised mirrorlist --- tasks/packages.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tasks/packages.yml b/tasks/packages.yml index a969b97..d34d821 100644 --- a/tasks/packages.yml +++ b/tasks/packages.yml @@ -77,3 +77,15 @@ when: "item not in installed_packages.stdout_lines" with_items: - 'archstrike-mirrorlist' + +- name: Download UK mirrorlist + get_url: + url: 'https://www.archlinux.org/mirrorlist/?country=GB&protocol=http&protocol=https&ip_version=4&ip_version=6&use_mirror_status=on' + dest: /etc/pacman.d/mirrorlist + force: true + +- name: Un-comment mirrorlist servers + replace: + path: /etc/pacman.d/mirrorlist + regexp: '^#Server = (.+)$' + replace: 'Server = \1'