From 0d648a5e559cd5ab70f8ecc4607c280d261957af Mon Sep 17 00:00:00 2001 From: Marty Oehme <contact@martyoeh.me> Date: Wed, 26 Feb 2025 21:37:54 +0100 Subject: [PATCH] feat(snooze): Enable snooze repetition services Runs all cron scripts every hour/day/week/month. --- books/void_base.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) 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 +