Files
configpolicy/roles/sonarr/handlers/main.yml
Dustin C. Hatch 23670338b3 sonarr: Deploy Sonarr in a Podman container
The `sonarr.yml` playbook and corresponding role deploy Sonarr, the
indexer manager for the *arr suite, in a Podman container.

Note that we're relocating the log files from the Sonarr AppData
directory to `/var/log/sonarr` so they can be picked up by Fluent Bit.
2025-12-03 23:00:54 -06:00

12 lines
253 B
YAML

- name: relocate sonarr logs
shell: |
if [ ! -h /var/lib/sonarr/logs ]; then
mv /var/lib/sonarr/logs/*.txt /var/log/sonarr/
rmdir /var/lib/sonarr/logs
fi
- name: restart sonarr
service:
name: sonarr
state: restarted