added pause before restarting jellyfin

This commit is contained in:
Jayne Passmore 2025-05-24 19:04:36 -05:00
parent 130a7a7796
commit 4160544e88
2 changed files with 13 additions and 7 deletions

View file

@ -1,7 +1,13 @@
#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
state: restarted
listen: "restart jellyfin"

View file

@ -16,6 +16,12 @@
owner: jellyfin
group: jellyfin
- name: ensure jellyfin is running
service:
name: jellyfin
state: started
enabled: yes
- name: deploy jellyfin system.xml file
ansible.builtin.copy:
owner: jellyfin
@ -23,9 +29,3 @@
src: files/system.xml
dest: /etc/jellyfin/system.xml
notify: restart jellyfin
- name: ensure jellyfin is running
service:
name: jellyfin
state: started
enabled: yes