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.
12 lines
253 B
YAML
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
|