Commit d3a47c1b authored by nimrod's avatar nimrod
Browse files

Flesh out the Kodi role.

parent b29ffa9e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
- hosts:
    - kodi
  roles:
    - debian_server
    - kodi
  become: true
  become_user: root
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ ConditionPathExists=/dev/tty0
[Service]
User=kodi
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
Restart=on-abort
RestartSec=5
+4 −0
Original line number Diff line number Diff line
---
- name: Rebuild initramfs
  command:
    cmd: update-initramfs -u
+13 −1
Original line number Diff line number Diff line
@@ -7,10 +7,22 @@
      - desktop-base
      - flatpak
      #- plymouth-themes
      - firmware-linux
      - udisks2
      - unison
      - 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
  with_dict:
    flathub: https://flathub.org/repo/flathub.flatpakrepo
@@ -32,12 +44,12 @@
  user:
    create_home: true
    home: /var/lib/kodi
    id: 999
    name: kodi
    password: '!'  # pragma: allowlist secret
    shell: /bin/false
    state: present
    system: true
    uid: 900

- name: Copy service
  copy: