Add reflector to weekly target

This commit is contained in:
Sonny Bakker 2020-11-25 21:56:14 +01:00
parent 1f33160600
commit c8e3c44d11
2 changed files with 9 additions and 0 deletions

View file

@ -1,4 +1,5 @@
- name: enable daily timer
become: yes
systemd:
name: daily.timer
state: restarted
@ -6,6 +7,7 @@
daemon-reload: yes
- name: enable weekly timer
become: yes
systemd:
name: weekly.timer
state: restarted

View file

@ -35,6 +35,13 @@
group: root
mode: "0600"
- name: add reflector to weekly timer
become: yes
file:
src: "/usr/lib/systemd/system/reflector.service"
path: "/etc/systemd/system/weekly.target.wants/reflector.service"
state: link
# TODO
# - network setup (laptop)
# - pacman setup depending on platform (see include section for common options)