Update package cache and packages during install #3
4 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,3 @@
|
|||
[aur-local]
|
||||
SigLevel = Never
|
||||
Server = http://pkg.actcur.com/archlinux/$repo/os/$arch
|
||||
Server = https://pkg.actcur.com/repo/archlinux/$repo/os/$arch
|
||||
|
|
|
@ -3,7 +3,7 @@ sleep 10
|
|||
sed -i 's/^#Server/Server/' /tmp/tempMirrors.list
|
||||
cat /tmp/tempMirrors.list | grep -e "Server = .*\/[$]repo\/os\/[$]arch" > /tmp/tempMirrors2.list
|
||||
mirrors=$(rankmirrors -n 10 /tmp/tempMirrors2.list | grep "Server = ")
|
||||
echo "Server = http://pkg.actcur.com/archlinux/$repo/os/$arch" > /tmp/mirrors.list
|
||||
echo 'Server = https://pkg.actcur.com/repo/archlinux/$repo/os/$arch' > /tmp/mirrors.list
|
||||
echo "$mirrors" >> /tmp/mirrors.list
|
||||
mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.old
|
||||
mv /tmp/mirrors.list /etc/pacman.d/mirrorlist
|
||||
|
|
|
@ -6,4 +6,6 @@
|
|||
- include_tasks: pacman.yml
|
||||
when: ansible_facts['distribution'] == "Archlinux"
|
||||
|
||||
- include_tasks: packages.yml
|
||||
|
||||
- include_tasks: directories.yml
|
||||
|
|
|
@ -44,3 +44,8 @@
|
|||
name: build_mirrorlist.timer
|
||||
state: started
|
||||
enabled: yes
|
||||
|
||||
- name: refresh package cache and upgrade packages
|
||||
community.general.pacman:
|
||||
upgrade: true
|
||||
update_cache: true
|
Loading…
Add table
Reference in a new issue