diff --git a/dotfiles.yml b/dotfiles.yml index dea7c68..b99dd04 100644 --- a/dotfiles.yml +++ b/dotfiles.yml @@ -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 diff --git a/files/reflector.service b/files/reflector.service deleted file mode 100644 index 9eb135b..0000000 --- a/files/reflector.service +++ /dev/null @@ -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 diff --git a/galaxy-requirements.yml b/galaxy-requirements.yml index 774d5c0..fcba5bd 100644 --- a/galaxy-requirements.yml +++ b/galaxy-requirements.yml @@ -1,2 +1,3 @@ - src: kewlfft.aur - src: geerlingguy.ntp +- src: realorangeone.reflector diff --git a/tasks/packages.yml b/tasks/packages.yml index cbd4e6f..e0dc19f 100644 --- a/tasks/packages.yml +++ b/tasks/packages.yml @@ -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