43 lines
902 B
YAML
43 lines
902 B
YAML
- 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
|
|
|
|
- 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
|
|
|
|
- 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
|
|
|