diff --git a/books/void_base.yaml b/books/void_base.yaml index b081737..296f7a8 100644 --- a/books/void_base.yaml +++ b/books/void_base.yaml @@ -210,3 +210,29 @@ ansible.builtin.debug: msg: "" listen: installed-snapper + +- name: Set up snooze as cron daemon + hosts: target_system + become: true + tags: + - cron + - snooze + tasks: + - name: Install snooze + community.general.xbps: + name: + - snooze + state: present + + - name: Activate snooze cron services + ansible.builtin.file: + force: "yes" + src: "/etc/sv/{{ item }}" + dest: "/etc/runit/runsvdir/default/{{ item }}" + state: link + loop: + - snooze-hourly + - snooze-daily + - snooze-weekly + - snooze-monthly +