Compare commits

...

2 commits
v1.0 ... prod

Author SHA1 Message Date
d361ef054d Update package cache and packages during install (#3)
Reviewed-on: #3
Co-authored-by: Beth <ejparker@actcur.com>
Co-committed-by: Beth <ejparker@actcur.com>
2025-03-20 21:59:30 -05:00
234ee5de8c Fix package cache repo URLs (#2)
Reviewed-on: #2
Co-authored-by: Beth <ejparker@actcur.com>
Co-committed-by: Beth <ejparker@actcur.com>
2025-03-20 14:32:39 -05:00
4 changed files with 9 additions and 2 deletions

View file

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

View file

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

View file

@ -6,4 +6,6 @@
- include_tasks: pacman.yml
when: ansible_facts['distribution'] == "Archlinux"
- include_tasks: packages.yml
- include_tasks: directories.yml

View file

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