Ansible role to install and config Kodi mediacenter on Raspberri Pi
|
taha@asks2
ca278586b6
Minimal changes to get it up and running.
+ uses kodi_user var so we can avoid hard-coding "users" vars all over the role + minor clean-up. Removed tags from deps. |
||
|---|---|---|
| defaults | Minimal changes to get it up and running. | |
| files | First commit. | |
| meta | Minimal changes to get it up and running. | |
| tasks | Minimal changes to get it up and running. | |
| templates | Minimal changes to get it up and running. | |
| .gitignore | First commit. | |
| LICENSE | First commit. | |
| README.md | First commit. | |
Kodi
Official Kodi download page for Linux suggests installing from Flathub or optionally using the Team Kodi PPA.
User and groups are handled by the users role
I am not really expecting there to be more than one user in the users dict but I see little reason to bother writing tasks that only accept one user when it's easier to just write the loop.
The users dict is defined in defaults, but you should reset it in your
play/host/group vars to ensure you redefine password and ssh keys. Note that
this dict is not merged, so you need to reset all of it.
users:
- username: kodi
primarygroup: kodi
# note, due to role design we need to include sudo in "groups" otherwise
# su ability lost immediately after role execution and further play execution
# halts due to permission error! (not applicable if user is not sudo)
groups: [ audio, dialout, disk, input, render, sudo, tty, video ]
password: "{{ 'kodi' | ansible.builtin.password_hash(hashtype='sha512') }}"
update_password: on_create
gecos: Kodi
gitconfig: false
shell: /bin/bash
ssh_key: |
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICe6kka1fuLgtXxj8ky2wVoVnNacv74yRZfKT4TYWR5f
exclusive_ssh_key: true
use_sudo: true
user_state: present
State of kodi packages on Ubuntu Noble Numbat
Kodi v20.5 from the ubuntu-ports repo on a Raspberry Pi 4 (no PPA).
kodi@ubuntu:~$ apt-cache search kodi
kodi - Open Source Home Theatre (executable binaries)
kodi-addons-dev - Open Source Home Theatre (addon development package)
kodi-addons-dev-common - Open Source Home Theatre (architecture-independent addon development package)
kodi-audiodecoder-fluidsynth - Fluidsynth audio decoder for Kodi
kodi-audiodecoder-openmpt - OpenMPT audio decoder for Kodi
kodi-audiodecoder-sidplay - SidPlay audio decoder for Kodi
kodi-audioencoder-flac - FLAC audio encoder add-on for Kodi
kodi-audioencoder-lame - LAME (mp3) audio encoder add-on for Kodi
kodi-audioencoder-vorbis - Vorbis audio encoder add-on for Kodi
kodi-audioencoder-wav - WAV audio encoder add-on for Kodi
kodi-bin - Open Source Home Theatre (architecture-dependent files)
kodi-data - Open Source Home Theatre (arch-independent data package)
kodi-eventclients-common - Open Source Home Theatre (Event Client Common package)
kodi-eventclients-dev - Open Source Home Theatre (Event Client virtual dev package)
kodi-eventclients-dev-common - Open Source Home Theatre (Event Client common dev package)
kodi-eventclients-kodi-send - Open Source Home Theatre (Event Client Kodi-SEND package)
kodi-eventclients-ps3 - Open Source Home Theatre (Event Client PS3 package)
kodi-eventclients-python - Open Source Home Theatre (Event Client Python package)
kodi-eventclients-wiiremote - Open Source Home Theatre (Event Client WII Remote support package)
kodi-eventclients-zeroconf - Open Source Home Theatre (Event Client ZeroConf script package)
kodi-game-libretro - Libretro wrapper for Kodi's Game API
kodi-game-libretro-bsnes-mercury-accuracy - Kodi integration for bsnes-mercury accuracy core
kodi-game-libretro-bsnes-mercury-balanced - Kodi integration for bsnes-mercury balanced core
kodi-game-libretro-bsnes-mercury-performance - Kodi integration for bsnes-mercury performance core
kodi-imagedecoder-heif - HEIF image decoder for Kodi
kodi-imagedecoder-raw - RAW image decoder for Kodi
kodi-inputstream-adaptive - Adaptive inputstream addon for Kodi
kodi-inputstream-ffmpegdirect - FFmpegDirect inputstream addon for Kodi
kodi-inputstream-rtmp - Kodi input stream addon for RTMP
kodi-peripheral-joystick - Kodi Joystick Library
kodi-peripheral-xarcade - X-Arcade Tankstick driver for Kodi
kodi-pvr-argustv - ARGUS TV PVR addon for Kodi
kodi-pvr-dvblink - DVBLink PVR Client for Kodi
kodi-pvr-dvbviewer - DVBViewer Kodi PVR Addon
kodi-pvr-filmon - Filmon PVR client addon for Kodi
kodi-pvr-hdhomerun - HDHomeRun PVR Addon for Kodi
kodi-pvr-hts - Kodi PVR Addon TvHeadend Hts
kodi-pvr-iptvsimple - IPTV Simple Client Kodi PVR Addon
kodi-pvr-mediaportal-tvserver - MediaPortal's TV-Server PVR addon for Kodi
kodi-pvr-mythtv - MythTV PVR Addon for Kodi
kodi-pvr-nextpvr - NextPVR PVR addon for Kodi
kodi-pvr-njoy - NJOY PVR Addon for Kodi
kodi-pvr-octonet - Digital Devices Octopus NET PVR for Kodi
kodi-pvr-pctv - PCTV PVR client addon for Kodi
kodi-pvr-sledovanitv-cz - sledovanitv.cz PVR for Kodi
kodi-pvr-stalker - Stalker Middleware PVR client addon for Kodi
kodi-pvr-teleboy - Teleboy PVR for Kodi
kodi-pvr-vbox - VBox Home TV Gateway addon for Kodi
kodi-pvr-vdr-vnsi - Kodi PVR Addon VDR VNSI
kodi-pvr-vuplus - Vu+/Enigma2 PVR Addon for Kodi
kodi-pvr-waipu - waipu PVR for Kodi
kodi-pvr-wmc - WMC PVR Addon for Kodi
kodi-pvr-zattoo - Zattoo PVR for Kodi
kodi-repository-kodi - Open Source Home Theatre (official addons repository feed)
kodi-screensaver-asteroids - Asteroids screensaver for Kodi
kodi-screensaver-biogenesis - BioGenesis screensaver for Kodi
kodi-screensaver-greynetic - Greynetic screensaver for Kodi
kodi-screensaver-pingpong - Pingpong screensaver for Kodi
kodi-screensaver-pyro - Pyro screensaver for Kodi
kodi-screensaver-shadertoy - Shadertoy screensaver for Kodi
kodi-tools-texturepacker - Open Source Home Theatre (TexturePacker skin development tool)
kodi-vfs-libarchive - Libarchive VFS add-on for Kodi
kodi-vfs-sftp - SSH File Transfer Protocol for Kodi
kodi-visualization-fishbmc - Fishbmc audio visualization addon for Kodi
kodi-visualization-pictureit - pictureit visualizer for Kodi
kodi-visualization-shadertoy - Shadertoy audio visualization for Kodi
kodi-visualization-shadertoy-data - Shadertoy audio visualization for Kodi (common data)
kodi-visualization-spectrum - Spectrum visualizer addon for Kodi
kodi-visualization-waveform - Waveform audio visualization addon for Kodi
libudfread-dev - UDF reader library (development files)
libudfread0 - UDF reader library
minidlna - lightweight DLNA/UPnP-AV server targeted at embedded systems
vdr-plugin-vnsiserver - VDR plugin to provide PVR backend services for Kodi
Links and notes
- https://kodi.tv/download/linux
- https://flathub.org/apps/tv.kodi.Kodi
- https://kodi.wiki/view/HOW-TO:Install_Kodi_for_Linux
- https://agatton.com/install-kodi-linux-distribution
- https://forum.kodi.tv/showthread.php?tid=324974&pid=2918529 - WIP Setting up KODI using Ansible
- https://launchpad.net/~team-xbmc/+archive/ubuntu/ppa Is this PPA still recommended way to install Kodi on Debian/Ubuntu? Latest update 47 weeks ago. Bundles Kodi v20.2 and not the latest 21.2.
Let's see if any existing Ansible role offers anything better than the PPA.
Ansible roles by others
- https://github.com/JGoutin/ansible_home/tree/master/roles/kodi via https://jgoutin.dev/ansible_home/roles/kodi Runs Kodi as stand-alone fullscreen application. Optional support for IR devices and PVR plugins. 31 stars, 6 forks, latest commit hours ago.
- https://github.com/jose1711/kodi-ansible-role - 27 stars, 3 forks, latest commit last month.
- https://github.com/ypid/ansible-kodi - 1 star, latest commit 8 years ago.
- https://github.com/yencarnacion/ansible-kodi - 3 stars, 1 fork, latest commit 10 years ago.
- https://github.com/cmprescott/ansible-role-kodi - 1 star, latest commit 10 years ago.