16 lines
899 B
YAML
16 lines
899 B
YAML
|
---
|
||
|
- name: Ensure repository key is added to keyring
|
||
|
apt_key:
|
||
|
url: https://repo.jellyfin.org/ubuntu/jellyfin_team.gpg.key
|
||
|
keyring: /etc/apt/trusted.gpg.d/jellyfin.gpg
|
||
|
#curl -fsSL https://repo.jellyfin.org/ubuntu/jellyfin_team.gpg.key | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/jellyfin.gpg
|
||
|
|
||
|
- name: Ensure repository is configured
|
||
|
apt_repository:
|
||
|
repo: "deb [arch={{ ansible_facts['facter_os']['architecture'] }}] https://repo.jellyfin.org/{{ ansible_facts['distribution'] | lower }} {{ ansible_facts['distribution_release'] }} main"
|
||
|
state: present
|
||
|
#echo "deb [arch=$( dpkg --print-architecture )] https://repo.jellyfin.org/$( awk -F'=' '/^ID=/{ print $NF }' /etc/os-release ) $( awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release ) main" | sudo tee /etc/apt/sources.list.d/jellyfin.list
|
||
|
|
||
|
- name: Ensure Jellyfin package is installed
|
||
|
package:
|
||
|
name: jellyfin
|