feat(snooze): Enable snooze repetition services
Runs all cron scripts every hour/day/week/month.
This commit is contained in:
parent
8301bfb522
commit
0d648a5e55
1 changed files with 26 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue