2022-12-02 21:23:33 +01:00
|
|
|
- name: Add Jellyfin GPG key
|
|
|
|
apt_key:
|
|
|
|
url: "https://repo.jellyfin.org/debian/jellyfin_team.gpg.key"
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: Add Jellyfin repository
|
|
|
|
apt_repository:
|
|
|
|
repo: "deb https://repo.jellyfin.org/debian bullseye main"
|
|
|
|
filename: 'jellyfin'
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: Install Jellyfin
|
|
|
|
apt:
|
|
|
|
name: jellyfin
|
|
|
|
state: present
|
2022-12-03 09:07:47 +01:00
|
|
|
|
2022-12-03 10:11:05 +01:00
|
|
|
- name: Copy over service file
|
|
|
|
copy:
|
|
|
|
src: jellyfin.service.conf
|
|
|
|
dest: '/etc/systemd/system/jellyfin.service.d/jellyfin.service.conf'
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: '644'
|
|
|
|
notify:
|
|
|
|
- daemon-reload
|
|
|
|
- restart-jellyfin
|
|
|
|
|
2022-12-03 09:07:47 +01:00
|
|
|
- name: Copy over Environment file
|
|
|
|
copy:
|
|
|
|
src: jellyfin-defaults
|
|
|
|
dest: '/etc/default/jellyfin'
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: '644'
|
|
|
|
notify: restart-jellyfin
|
|
|
|
|
|
|
|
- name: Ensure Jellyfin service is running & enabled
|
|
|
|
service:
|
|
|
|
name: jellyfin
|
|
|
|
state: started
|
|
|
|
enabled: true
|
|
|
|
|