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 - name: enable daily timer
become: yes
systemd: systemd:
name: daily.timer name: daily.timer
state: restarted state: restarted
@ -6,6 +7,7 @@
daemon-reload: yes daemon-reload: yes
- name: enable weekly timer - name: enable weekly timer
become: yes
systemd: systemd:
name: weekly.timer name: weekly.timer
state: restarted state: restarted

View file

@ -35,6 +35,13 @@
group: root group: root
mode: "0600" 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 # TODO
# - network setup (laptop) # - network setup (laptop)
# - pacman setup depending on platform (see include section for common options) # - pacman setup depending on platform (see include section for common options)