2017-08-31 15:55:04 +02:00
|
|
|
---
|
|
|
|
# file: roles/yavdr-xorg/tasks/setup-xorg.yml
|
2017-07-31 10:38:02 +02:00
|
|
|
- name: create directories for systemd drop-in files
|
2017-07-30 14:29:38 +02:00
|
|
|
file:
|
2017-07-31 10:38:02 +02:00
|
|
|
dest: '{{ item }}'
|
2017-07-30 14:29:38 +02:00
|
|
|
state: directory
|
2017-07-31 10:38:02 +02:00
|
|
|
with_items:
|
|
|
|
- /etc/systemd/system/x@.service.d/
|
|
|
|
- /etc/systemd/system/vdr.service.d/
|
2017-07-31 11:45:33 +02:00
|
|
|
- '/etc/systemd/system/user@{{ vdr.uid }}.service.d/'
|
2017-07-30 14:29:38 +02:00
|
|
|
|
|
|
|
- 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
|
|
|
|
|
2017-07-31 10:38:02 +02:00
|
|
|
- name: start x@.service before xlogin@.service
|
|
|
|
template:
|
|
|
|
src: templates/x@service.d/xlogin.conf.j2
|
|
|
|
dest: /etc/systemd/system/x@.service.d/xlogin.conf
|
|
|
|
|
2017-07-30 14:29:38 +02:00
|
|
|
- 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 11:45:33 +02:00
|
|
|
- name: user@{{ vdr.uid }}.service depends on x@vt7.service
|
|
|
|
template:
|
2017-07-31 11:52:04 +02:00
|
|
|
src: templates/user@666.service.d/x-dependency.conf.j2
|
2017-07-31 11:45:33 +02:00
|
|
|
dest: '/etc/systemd/system/user@{{ vdr.uid }}.service.d/x-dependency.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
|
2017-07-31 08:47:18 +02:00
|
|
|
line: '{{ item }}'
|
2017-07-31 08:22:05 +02:00
|
|
|
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
|