Add reflector configuration
This commit is contained in:
parent
636019283f
commit
1f33160600
2 changed files with 38 additions and 1 deletions
|
|
@ -26,9 +26,17 @@
|
|||
mode: "0600"
|
||||
notify: restart nftables
|
||||
|
||||
- name: copy reflector configuration
|
||||
become: yes
|
||||
template:
|
||||
src: "reflector.j2"
|
||||
dest: "/etc/xdg/reflector/reflector.conf"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0600"
|
||||
|
||||
# TODO
|
||||
# - network setup (laptop)
|
||||
# - reflector setup
|
||||
# - pacman setup depending on platform (see include section for common options)
|
||||
|
||||
- include_tasks: network.yml
|
||||
|
|
|
|||
29
roles/arch/templates/reflector.j2
Normal file
29
roles/arch/templates/reflector.j2
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
|
||||
#
|
||||
# Reflector configuration file for the systemd service.
|
||||
#
|
||||
# Empty lines and lines beginning with "#" are ignored. All other lines should
|
||||
# contain valid reflector command-line arguments. The lines are parsed with
|
||||
# Python's shlex modules so standard shell syntax should work. All arguments are
|
||||
# collected into a single argument list.
|
||||
#
|
||||
# See "reflector --help" for details.
|
||||
|
||||
# Recommended Options
|
||||
|
||||
# Set the output path where the mirrorlist will be saved (--save).
|
||||
--save /etc/pacman.d/mirrorlist
|
||||
|
||||
# Select the transfer protocol (--protocol).
|
||||
--protocol https
|
||||
|
||||
# Select the country (--country).
|
||||
# Consult the list of available countries with "reflector --list-countries" and
|
||||
# select the countries nearest to you or the ones that you trust. For example:
|
||||
--country Germany,Netherlands,France
|
||||
|
||||
# Use only the most recently synchronized mirrors (--latest).
|
||||
#--latest 5
|
||||
|
||||
# Sort the mirrors by synchronization time (--sort).
|
||||
--sort rate
|
||||
Loading…
Add table
Add a link
Reference in a new issue