From ea72f7ed9d5b355a9e80043e37030c0c5dc477fa Mon Sep 17 00:00:00 2001 From: vincent Date: Fri, 26 Feb 2021 18:58:25 +0100 Subject: [PATCH] add local arch mirror to bootstrap --- tasks/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 0852802..7a85a68 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -14,6 +14,15 @@ when: debian.stdout +- name: add local repo to mirrorlist + become: yes + lineinfile: + path: /etc/pacman.d/mirrorlist + line: "Server= {{system_arch_local_mirror}}/$repo/os/$arch" + state: present + insertbefore: BOF + when: system_arch_local_mirror is defined and not debian.stdout + - name: upgrade system for arch pacman: state: latest # not required. choices: absent;latest;present. Desired state of the package.