make cron configurable
This commit is contained in:
@@ -42,6 +42,12 @@ seafile_syncs:
|
|||||||
dir: /backup/Pictures
|
dir: /backup/Pictures
|
||||||
# A library-specific resync interval
|
# A library-specific resync interval
|
||||||
resync_interval_days: 31
|
resync_interval_days: 31
|
||||||
|
seafile_cron:
|
||||||
|
minute: "20"
|
||||||
|
hour: "23"
|
||||||
|
day: "*"
|
||||||
|
month: "*"
|
||||||
|
weekday: "*"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Run in playbook
|
## Run in playbook
|
||||||
|
|||||||
7
defaults/main.yaml
Normal file
7
defaults/main.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
seafile_cron:
|
||||||
|
minute: "20"
|
||||||
|
hour: "23"
|
||||||
|
day: "*"
|
||||||
|
month: "*"
|
||||||
|
weekday: "*"
|
||||||
@@ -48,8 +48,11 @@
|
|||||||
cron:
|
cron:
|
||||||
name: Seafile Mirror Service
|
name: Seafile Mirror Service
|
||||||
job: "chronic pipx run seafile-mirror -c {{ seafile_mirror_dir }}"
|
job: "chronic pipx run seafile-mirror -c {{ seafile_mirror_dir }}"
|
||||||
hour: "23"
|
minute: "{{ seafile_cron.minute }}"
|
||||||
minute: "20"
|
hour: "{{ seafile_cron.hour }}"
|
||||||
|
day: "{{ seafile_cron.day }}"
|
||||||
|
month: "{{ seafile_cron.month }}"
|
||||||
|
weekday: "{{ seafile_cron.weekday }}"
|
||||||
|
|
||||||
- name: Ensure user systemd directory exists
|
- name: Ensure user systemd directory exists
|
||||||
file:
|
file:
|
||||||
|
|||||||
Reference in New Issue
Block a user