mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-23 02:24:09 +00:00
Merge branch 'brett-mirrormagic'
This commit is contained in:
commit
778400c2db
3 changed files with 7 additions and 3 deletions
|
|
@ -323,6 +323,7 @@ kdeconnect:
|
|||
|
||||
mirrorlist:
|
||||
run_on: trusted
|
||||
country: US
|
||||
|
||||
units:
|
||||
run_on: trusted
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue