This is a simple ansible script that will setup HTPC machine from Fedora Silverblue machine using Kodi from flatpak.
- SSH access to target machine
- Clean Fedora 29 Silverblue installation
ansible-playbook -i <target_ip_address>, htpc-playbook.yml -e 'ansible_python_interpreter=/usr/bin/python3'
Fedora 29 Silverblue doesn't have python 2. This is the reason why you need to specify python interpreter.
If you don't want automatic updates add --skip-tags auto-updates.
If you created Silverblue with only root user, you will end up in GNOME logged as gnome-initial-setup user. To login as root you need to edit GRUB entry:
- Wait till you enter GRUB and hit
e - Add
3to line beggining withlinux16 - Hit
CTRL + x
You will end up in terminal and can login as root. To enable SSH daemon just run systemctl enable sshd
and reboot the machine.
- Updates Silverblue to latest ostree image and installs cron
- Does a reboot to apply new ostree image
- Creates a new user
kodi - Installs Kodi from flathub and set it as autostart application for
kodiuser - Update GDM to automatically login as
kodiuser - Disable specific gnome features (screensaver, dim screen, automatic updates)
- Creates cron job that is keeping Silverblue and Kodi up to date
- Does a reboot (you should end up in Kodi)