From a00ffd10dfebe7882198a46d38a22392629ff78a Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Thu, 12 Dec 2024 06:36:23 -0600 Subject: [PATCH] r/jellyfin: Fix system.xml template whitespace Jellyfin is one of those stupid programs that thinks it needs to mutate its own config. At startup, it apparently reads `system.xml` and then writes it back out. When it does this, it trims the final newline from the file. Then, the next time Ansible runs, the template rewrites the file with the trailing newline, and thus determines that the file has changed and restarts the service. This cycle has been going on for a while and is rather annoying. --- roles/jellyfin/templates/system.xml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/jellyfin/templates/system.xml.j2 b/roles/jellyfin/templates/system.xml.j2 index f40365f..75b908d 100644 --- a/roles/jellyfin/templates/system.xml.j2 +++ b/roles/jellyfin/templates/system.xml.j2 @@ -188,4 +188,4 @@ 90 1 - + \ No newline at end of file