# HG changeset patch # User Luke Hoersten # Date 1675616486 21600 # Node ID 88a7fee5effe557de11c307e068fb1f12f4fa35f # Parent e16c94c81b531f376dd0fa67132e41298404c11f Add jellyfin role. diff -r e16c94c81b53 -r 88a7fee5effe jellyfin/handlers/main.yaml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jellyfin/handlers/main.yaml Sun Feb 05 11:01:26 2023 -0600 @@ -0,0 +1,5 @@ +--- + +- name: restart jellyfin service + become: yes + systemd: name="jellyfin" state="restarted" daemon_reload="yes" diff -r e16c94c81b53 -r 88a7fee5effe jellyfin/tasks/main.yaml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jellyfin/tasks/main.yaml Sun Feb 05 11:01:26 2023 -0600 @@ -0,0 +1,28 @@ +--- + +# https://jellyfin.org/downloads/server + +- name: add jellyfin apt key + become: yes + get_url: + url: "https://repo.jellyfin.org/jellyfin_team.gpg.key" + dest: "/etc/apt/trusted.gpg.d/jellyfin_team.asc" + mode: "0644" + +- name: add jellyfin apt repo + become: yes + apt_repository: repo="deb [signed-by=/etc/apt/trusted.gpg.d/jellyfin_team.asc] https://repo.jellyfin.org/ubuntu jammy main unstable" + notify: restart jellyfin service + +- name: update apt package cache + become: yes + apt: upgrade="dist" update_cache="yes" cache_valid_time="3600" + +- name: install jellyfin server + become: yes + apt: name="jellyfin" + notify: restart jellyfin service + +- name: ensure jellyfin service is running + become: yes + systemd: name="jellyfin.service" state="started" daemon_reload="yes"