Skip to content
Snippets Groups Projects
Commit d3a47c1b authored by nimrod's avatar nimrod
Browse files

Flesh out the Kodi role.

parent b29ffa9e
Branches
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
- hosts: - hosts:
- kodi - kodi
roles: roles:
- debian_server
- kodi - kodi
become: true become: true
become_user: root become_user: root
...@@ -18,7 +18,7 @@ ConditionPathExists=/dev/tty0 ...@@ -18,7 +18,7 @@ ConditionPathExists=/dev/tty0
[Service] [Service]
User=kodi User=kodi
PAMName=login PAMName=login
ExecStart=flatpak run --device=dri --filesystem=home --filesystem=/srv/library tv.kodi.Kodi --standalone --windowing=gbm -fs ExecStart=flatpak run --device=all --filesystem=/srv/library tv.kodi.Kodi --standalone --windowing=gbm -fs
Type=simple Type=simple
Restart=on-abort Restart=on-abort
RestartSec=5 RestartSec=5
......
---
- name: Rebuild initramfs
command:
cmd: update-initramfs -u
...@@ -7,10 +7,22 @@ ...@@ -7,10 +7,22 @@
- desktop-base - desktop-base
- flatpak - flatpak
#- plymouth-themes #- plymouth-themes
- firmware-linux
- udisks2 - udisks2
- unison - unison
- upower - upower
- name: Configure boot splash
copy:
backup: true
content: |
[Daemon]
Theme=futureprototype
dest: /etc/plymouth/plymouthd.conf
mode: 0o0644
notify:
- Rebuild initramfs
- name: Add Flatpak remotes - name: Add Flatpak remotes
with_dict: with_dict:
flathub: https://flathub.org/repo/flathub.flatpakrepo flathub: https://flathub.org/repo/flathub.flatpakrepo
...@@ -32,12 +44,12 @@ ...@@ -32,12 +44,12 @@
user: user:
create_home: true create_home: true
home: /var/lib/kodi home: /var/lib/kodi
id: 999
name: kodi name: kodi
password: '!' # pragma: allowlist secret password: '!' # pragma: allowlist secret
shell: /bin/false shell: /bin/false
state: present state: present
system: true system: true
uid: 900
- name: Copy service - name: Copy service
copy: copy:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment