feat(snooze): Enable snooze repetition services

Runs all cron scripts every hour/day/week/month.
This commit is contained in:
Marty Oehme 2025-02-26 21:37:54 +01:00
parent 8301bfb522
commit 0d648a5e55
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -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