add local arch mirror to bootstrap

This commit is contained in:
vincent 2021-02-26 18:58:25 +01:00
parent e1673ce9fd
commit ea72f7ed9d

View File

@ -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.