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 34 Silverblue installation
community.general
collection for flatpak ansible roles. Install it usingansible-galaxy collection install community.general
ansible-playbook -i <target_ip_address>, -u <administrator_user> -k -K htpc-playbook.yml
-k
and -K
is needed to enter the user password for ssh and sudo.
If you don't want automatic updates add --skip-tags auto-updates
.
After installation you will end up in GNOME logged as gnome-initial-setup user. Create a administrator user which will be used to provision the machine by ansible.
- Run terminal, press
Super
(key between ALT and CTRL) and typeterminal
- Start sshd
systemctl start sshd
- Enable sshd
systemctl enable sshd
- Updates Silverblue to latest ostree image
- Does a reboot to apply new ostree image
- Creates a new user
htpc
- Installs Kodi and VLC from flathub for
htpc
user - Update GDM to automatically login as
htpc
user - Disable some gnome features - sleep over time, display dim, automatic updates through GNOME Software, Screensaver
- Creates systemd-timer that is keeping system up to date (Use
--skip tags auto-updates
if you don't want this functionality) - Does a reboot (you should be logged in as
htpc
user)