add local arch mirror to bootstrap
This commit is contained in:
parent
e1673ce9fd
commit
ea72f7ed9d
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user