--- - 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: Set arch set_fact: arch: amd64 when: ansible_facts['architecture'] == 'x86_64' - name: Set arch set_fact: arch: arm64 when: ansible_facts['architecture'] == 'aarch64' - name: Ensure repository is configured apt_repository: repo: "deb 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