Enforce ownership of jellyfin config and cache directories, remove system.xml file and restart handler #3

Merged
jayne merged 5 commits from testing into prod 2025-05-24 22:39:25 -05:00
2 changed files with 14 additions and 13 deletions
Showing only changes of commit cc42a82497 - Show all commits

View file

@ -1,13 +1,7 @@
#SPDX-License-Identifier: MIT-0
---
# handlers file for role-jellyfin
- name: pause to ensure jellyfin has completely started on first run
ansible.builtin.pause:
seconds: 30
listen: "restart jellyfin"
- name: restart jellyfin
service:
name: jellyfin
state: restarted
listen: "restart jellyfin"
state: restarted

View file

@ -2,7 +2,7 @@
---
# tasks file for role-jellyfin
- name: install nextcloud and dependencies
- name: install jellyfin and dependencies
ansible.builtin.package:
name:
- jellyfin-server
@ -16,11 +16,12 @@
owner: jellyfin
group: jellyfin
- name: ensure jellyfin is running
service:
name: jellyfin
state: started
enabled: yes
- name: ensure jellyfin cache is owned by jellyfin user
ansible.builtin.file:
path: /var/cache/jellyfin/
recurse: yes
owner: jellyfin
group: jellyfin
- name: deploy jellyfin system.xml file
ansible.builtin.copy:
@ -29,3 +30,9 @@
src: files/system.xml
dest: /etc/jellyfin/system.xml
notify: restart jellyfin
- name: ensure jellyfin is running
service:
name: jellyfin
state: started
enabled: yes