Replace reflector with external role

This commit is contained in:
Jake Howard 2020-08-05 22:18:14 +01:00
parent ff09c81cd4
commit 3d70f06544
Signed by: jake
GPG key ID: 57AFB45680EDD477
4 changed files with 4 additions and 30 deletions

View file

@ -13,6 +13,9 @@
- include_role:
name: geerlingguy.ntp
- include_role:
name: realorangeone.reflector
- import_tasks: tasks/boot.yml
- import_tasks: tasks/i3.yml
- import_tasks: tasks/network.yml

View file

@ -1,11 +0,0 @@
[Unit]
Description=Pacman mirrorlist update
Wants=network-online.target
After=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/bin/reflector --verbose --sort rate -a 1 -p https --threads {{ ansible_facts.processor_vcpus }} --save /etc/pacman.d/mirrorlist
[Install]
RequiredBy=multi-user.target

View file

@ -1,2 +1,3 @@
- src: kewlfft.aur
- src: geerlingguy.ntp
- src: realorangeone.reflector

View file

@ -52,22 +52,3 @@
src: ./files/makepkg.conf
dest: /etc/makepkg.conf
mode: 0644
- name: Install Reflector
aur:
name: reflector
become: true
become_user: aur_builder
- name: Install Reflector service
template:
src: ./files/reflector.service
dest: /etc/systemd/system/reflector.service
mode: 0644
owner: root
group: root
- name: Enable Reflector services
systemd:
name: reflector
enabled: true