2017-07-30 14:29:38 +02:00
|
|
|
- name: create directory /etc/systemd/system/vdr.service.d/
|
|
|
|
file:
|
|
|
|
dest: /etc/systemd/system/vdr.service.d/
|
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: add dependency to X-server for vdr.service using a drop-in
|
|
|
|
template:
|
|
|
|
src: templates/vdr-xorg.conf
|
|
|
|
dest: /etc/systemd/system/vdr.service.d/vdr-xorg.conf
|
|
|
|
|
|
|
|
- name: load environment file for vdr.service
|
|
|
|
template:
|
|
|
|
src: templates/systemd/vdr-environ.j2
|
|
|
|
dest: /etc/systemd/system/vdr.service.d/load-environ.conf
|
|
|
|
|
2017-07-31 08:22:05 +02:00
|
|
|
- name: start softhddevice detached and set audio to pulseaudio
|
|
|
|
lineinfile:
|
|
|
|
path: /etc/vdr/conf.avail/softhddevice.conf
|
|
|
|
line: {{ item }}
|
|
|
|
with_items:
|
|
|
|
- '-D'
|
|
|
|
# - '-a pulse' # do we need this with our existing asound.conf?
|
|
|
|
|
2017-07-30 14:29:38 +02:00
|
|
|
- name: set a login shell for the user vdr
|
|
|
|
user:
|
|
|
|
name: '{{ vdr.user }}'
|
|
|
|
shell: '/bin/bash'
|
|
|
|
state: present
|
|
|
|
uid: '{{ vdr.uid }}'
|
|
|
|
groups: '{{ vdr.group }}'
|
|
|
|
append: yes
|
|
|
|
|
|
|
|
- name: install packages for xorg
|
|
|
|
apt:
|
|
|
|
name: '{{ item }}'
|
|
|
|
state: present
|
|
|
|
with_items:
|
|
|
|
- xorg
|
|
|
|
- xserver-xorg-video-all
|
|
|
|
- xserver-xorg-input-all
|
|
|
|
- xlogin
|
|
|
|
- xterm
|
|
|
|
- openbox
|
|
|
|
- tmux
|
|
|
|
- kiosk-browser
|
|
|
|
- read-edid
|
2017-07-30 15:21:05 +02:00
|
|
|
- python3-dbus2vdr
|
2017-07-30 14:29:38 +02:00
|
|
|
- python3-yavdrfrontend
|
2017-07-30 21:55:48 +02:00
|
|
|
- vdr-plugin-desktop
|
2017-07-30 14:29:38 +02:00
|
|
|
#- yavdr-xorg
|