Merge branch 'brett-mirrormagic'

This commit is contained in:
Pig Monkey 2024-09-18 15:52:41 -07:00
commit 778400c2db
3 changed files with 7 additions and 3 deletions

View file

@ -323,6 +323,7 @@ kdeconnect:
mirrorlist:
run_on: trusted
country: US
units:
run_on: trusted

View file

@ -5,8 +5,8 @@
state: present
- name: Push reflector update script
copy:
src: reflector-update.sh
template:
src: reflector-update.sh.j2
dest: /usr/local/bin/reflector-update
mode: 0755

View file

@ -1,6 +1,9 @@
#!/bin/bash
# {{ ansible_managed}
#
/usr/bin/reflector --latest 20 \
{% if mirrorlist.country %}--country {{ mirrorlist.country }} \
{% endif %}
--sort rate \
--protocol https \
--save /etc/pacman.d/mirrorlist