ansible-role-jellyfin/tasks/install_ubuntu.yml

28 lines
1 KiB
YAML
Raw Permalink Normal View History

2022-10-11 09:18:59 +02:00
---
- 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
2023-01-09 16:36:57 +01:00
- name: Set arch
set_fact:
arch: amd64
when: ansible_facts['architecture'] == 'x86_64'
- name: Set arch
set_fact:
arch: arm64
when: ansible_facts['architecture'] == 'aarch64'
2022-10-11 09:18:59 +02:00
- name: Ensure repository is configured
apt_repository:
2023-08-02 18:02:15 +02:00
repo: "deb https://repo.jellyfin.org/{{ ansible_facts['distribution'] | lower }} {{ ansible_facts['distribution_release'] }} main"
2022-10-11 09:18:59 +02:00
state: present
2023-08-21 11:23:48 +02:00
update_cache: true
2022-10-11 09:18:59 +02:00
#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:
2023-01-09 16:36:57 +01:00
name: jellyfin