Replace reflector with external role
This commit is contained in:
parent
ff09c81cd4
commit
3d70f06544
4 changed files with 4 additions and 30 deletions
|
@ -13,6 +13,9 @@
|
||||||
- include_role:
|
- include_role:
|
||||||
name: geerlingguy.ntp
|
name: geerlingguy.ntp
|
||||||
|
|
||||||
|
- include_role:
|
||||||
|
name: realorangeone.reflector
|
||||||
|
|
||||||
- import_tasks: tasks/boot.yml
|
- import_tasks: tasks/boot.yml
|
||||||
- import_tasks: tasks/i3.yml
|
- import_tasks: tasks/i3.yml
|
||||||
- import_tasks: tasks/network.yml
|
- import_tasks: tasks/network.yml
|
||||||
|
|
|
@ -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
|
|
|
@ -1,2 +1,3 @@
|
||||||
- src: kewlfft.aur
|
- src: kewlfft.aur
|
||||||
- src: geerlingguy.ntp
|
- src: geerlingguy.ntp
|
||||||
|
- src: realorangeone.reflector
|
||||||
|
|
|
@ -52,22 +52,3 @@
|
||||||
src: ./files/makepkg.conf
|
src: ./files/makepkg.conf
|
||||||
dest: /etc/makepkg.conf
|
dest: /etc/makepkg.conf
|
||||||
mode: 0644
|
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
|
|
||||||
|
|
Loading…
Reference in a new issue