diff --git a/README.md b/README.md index 060c265..6e8c66d 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,13 @@ If you use tags to selectively enable features, you only have to adapt their var Check existing files for available variables and their meaning. +## Scheduled Jobs + +| Interval | Description | Active when feature selected | +| --------------- | --------------------------- | ---------------------------- | +| daily at 2 a.m. | backup user data | backup | +| daily at 5 a.m. | rescan miniDLNA directories | dlna | + ## Port Forwarding > **_Note:_** Instead of forwarding relevant ports from your router to the NAS, strongly consider using a VPN to avoid any unencrypted file transfer (e.g. Samba) via internet. diff --git a/roles/minidlna/tasks/main.yml b/roles/minidlna/tasks/main.yml index faf891e..be9860c 100644 --- a/roles/minidlna/tasks/main.yml +++ b/roles/minidlna/tasks/main.yml @@ -14,6 +14,14 @@ name: minidlna groups: "{{ nas.user.name }}" +- name: schedule daily re-scan + cron: + user: minidlna + name: reload minidlna for full re-scan + job: /usr/sbin/minidlnad -R + hour: 5 + minute: 0 + - name: configure firewall ufw: rule: allow