added cache dir
This commit is contained in:
parent
4160544e88
commit
cc42a82497
2 changed files with 14 additions and 13 deletions
|
@ -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"
|
|
@ -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
|
Loading…
Add table
Reference in a new issue