This commit is contained in:
Alexander Grothe
2017-07-28 16:10:48 +02:00
16 changed files with 34 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ Description=Start kodi in user session
Type=simple
PassEnvironment=DISPLAY XDG_RUNTIME_DIR DBUS_SESSION_BUS_ADDRESS
ExecStartPre=-/usr/bin/set-kodi-display
ExecStart=/usr/bin/kodi
ExecStart=/usr/bin/kodi -l /run/lirc/lircd
ExecStop=/bin/bash -c "/usr/bin/kodi-send --action=QUIT; while /usr/bin/pgrep kodi; do sleep 1; done; sleep 1"
TimeoutStopSec=10
SuccessExitStatus=0 127

View File

@@ -77,6 +77,7 @@
follow symlinks= yes
wide links= yes
{% endif %}
{% for name, path in media_dirs.iteritems() %}
[{{ name }}]
path = {{ path }}
@@ -92,4 +93,5 @@
wide links = yes
{% endfor %}
include = /etc/samba/smb.conf.custom

View File

@@ -1,3 +1,4 @@
foo:
- bar
- baz

View File

@@ -10,6 +10,7 @@
- vdr
- vdrctl
- vdr-plugin-dbus2vdr
- name: add svdrp and svdrp-disc to /etc/services
lineinfile:
dest: /etc/services
@@ -18,6 +19,7 @@
with_items:
- "svdrp 6419/tcp"
- "svdrp-disc 6419/udp"
- name: create vdr recdir
file:
state: directory
@@ -47,6 +49,7 @@
vdr.hide_first_recording_level
# TODO: set recdir, user etc. in /etc/vdr/conf.d/
- name: apt | install additional vdr plugins
apt:
name: '{{ item }}'
@@ -55,6 +58,7 @@
with_items:
'{{ vdr_plugins | default({}) }}'
notify: [ 'Restart VDR' ]
- name: ensure vdr is stopped
systemd:
name: vdr.service

View File

@@ -4,10 +4,12 @@
template:
src: templates/90-norecommends.j2
dest: /etc/apt/apt.conf.d/90norecommends
- name: use bash instead of dash
shell: |
echo "set dash/sh false" | debconf-communicate
dpkg-reconfigure -f noninteractive dash
- name: create vdr group
group:
gid: '{{ vdr.gid }}'
@@ -23,6 +25,7 @@
shell: '/bin/bash'
state: present
append: true
- name: disable release-upgrade notifications
lineinfile:
dest: /etc/update-manager/release-upgrades
@@ -30,6 +33,7 @@
state: present
regexp: '^(Prompt=).*$'
line: '\1never'
- name: add yaVDR PPAs
apt_repository:
repo: '{{ item }}'
@@ -41,6 +45,7 @@
apt:
upgrade: dist
update_cache: yes
- name: apt | install basic packages
apt:
name: '{{ item }}'
@@ -63,6 +68,7 @@
- wpasupplicant
- usbutils
- xfsprogs
- name: apt | install extra packages
apt:
name: '{{ item }}'
@@ -70,6 +76,7 @@
install_recommends: no
with_items:
'{{ extra_packages }}'
- name: get information about usb and pci hardware and loaded kernel modules
hardware_facts:
usb: True
@@ -85,6 +92,7 @@
- pci
- gpus
- modules
- name: create media directories
file:
dest: '{{ item.value }}'

View File

@@ -1,4 +1,5 @@
#!/bin/bash
# forward environment variables to an environment file and the systemd user session
env | grep "DISPLAY\|DBUS_SESSION_BUS_ADDRESS\|XDG_RUNTIME_DIR" > ~/.session-env
systemctl --user import-environment DISPLAY XAUTHORITY XDG_RUNTIME_DIR DBUS_SESSION_BUS_ADDRESS

View File

@@ -1,2 +1,3 @@
[Service]
EnvironmentFile=-/var/lib/vdr/.session-env

View File

@@ -1,3 +1,4 @@
Section "Device"
Identifier "nvidia"
Driver "nvidia"

View File

@@ -1,3 +1,4 @@
{{ ansible_managed_file | comment }}
Section "ServerLayout"