diff --git a/README.md b/README.md index 5e2aa05..efb12f0 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ role-jellyfin ========= -A brief description of the role goes here. +This role installs and configures the jellyfin server and web UI Requirements ------------ -No requirements +The nginx-ssl role is highly recommended to handle ssl termination. Similarly the certbot role is also highly recommended to handle certificate creation/renewal automatically Role Variables -------------- @@ -23,8 +23,8 @@ Example Playbook Template Playbook creation should be handled by playbook-builder. To include role in a playbook, add one of these lines (changing version/branch as needed) to the template with other core entries: -role:mount:v1.0:core,mount -role:mount:testing:core,mount +role:jellyfin:v1.0:workload,jellyfin +role:jellyfin:testing:workload,jellyfin License ------- diff --git a/defaults/main.yml b/defaults/main.yml index a0eb46b..bd88888 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,3 +1,3 @@ #SPDX-License-Identifier: MIT-0 --- -# defaults file for ${REPO_NAME} +# defaults file for role-jellyfin diff --git a/files/system.xml b/files/system.xml new file mode 100644 index 0000000..4c5f0a1 --- /dev/null +++ b/files/system.xml @@ -0,0 +1,192 @@ + + + 3 + true + /var/cache/jellyfin + false + true + true + true + true + true + /var/lib/jellyfin/metadata + en + US + + . + + + % + + + , + & + - + { + } + ' + + + the + a + an + + 5 + 90 + 300 + 5 + 5 + 0 + 60 + 30 + Legacy + + + Book + + + + + + + + + Movie + + + + + + + + + MusicVideo + + + + The Open Movie Database + + + + The Open Movie Database + + + + + Series + + + + + + + + + MusicAlbum + + + + TheAudioDB + + + + + + + MusicArtist + + + + TheAudioDB + + + + + + + BoxSet + + + + + + + + + Season + + + + + + + + + Episode + + + + + + + + + true + Actur Media Server + en-GB + false + + 0 + false + false + true + + + + Jellyfin Stable + https://repo.jellyfin.org/files/plugin/manifest.json + true + + + true + 0 + + true + 500 + + * + + 30 + 0 + 0 + false + true + 0 + MatchSource + 0 + + + F007D354 + Stable + + + 6F511C87 + Unstable + + + + false + false + false + NonBlocking + BelowNormal + 10000 + + 320 + + 10 + 10 + 4 + 90 + 1 + + \ No newline at end of file diff --git a/handlers/main.yml b/handlers/main.yml index 192bcab..d89abd9 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,3 +1,7 @@ #SPDX-License-Identifier: MIT-0 --- -# handlers file for ${REPO_NAME} +# handlers file for role-jellyfin +- name: restart jellyfin + service: + name: jellyfin + state: restarted \ No newline at end of file diff --git a/tasks/main.yml b/tasks/main.yml index 0482006..938c3aa 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,3 +1,29 @@ #SPDX-License-Identifier: MIT-0 --- -# tasks file for ${REPO_NAME} +# tasks file for role-jellyfin + +- name: install nextcloud and dependencies + ansible.builtin.package: + name: + - jellyfin-server + - jellyfin-web + state: present + +- name: ensure jellyfin data is owned by jellyfin user + ansible.builtin.file: + path: /var/lib/jellyfin/ + recurse: yes + owner: jellyfin + group: jellyfin + +- name: deploy jellyfin system.xml file + ansible.builtin.copy: + src: files/system.xml + dest: /etc/jellyfin/system.xml + notify: restart jellyfin + +- name: ensure jellyfin is running + service: + name: jellyfin + state: started + enabled: yes \ No newline at end of file diff --git a/tests/test.yml b/tests/test.yml index a1c8646..0a92ac0 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -3,4 +3,4 @@ - hosts: localhost remote_user: root roles: - - ${REPO_NAME} + - role-jellyfin \ No newline at end of file diff --git a/vars/main.yml b/vars/main.yml index f31a73e..fc897cf 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,3 +1,3 @@ #SPDX-License-Identifier: MIT-0 --- -# vars file for ${REPO_NAME} +# vars file for role-jellyfin \ No newline at end of file