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:
|
2017-11-21 11:30:03 +01:00
|
|
|
- "/etc/systemd/system/x@.service.d/"
|
|
|
|
- "/etc/systemd/system/vdr.service.d/"
|
|
|
|
- "/etc/systemd/system/user@{{ vdr.uid }}.service.d/"
|
2017-12-17 10:38:12 +01:00
|
|
|
- "/etc/X11/xorg.conf.d/"
|
|
|
|
|
2017-11-22 08:11:56 +01:00
|
|
|
- name: systemd-drop-in | add dependency to X-server for vdr.service
|
2017-07-30 14:29:38 +02:00
|
|
|
template:
|
|
|
|
src: templates/vdr-xorg.conf
|
|
|
|
dest: /etc/systemd/system/vdr.service.d/vdr-xorg.conf
|
|
|
|
|
2018-01-27 20:45:31 +01:00
|
|
|
- name: systemd-drop-in | start x@.service after plymouth.service
|
|
|
|
template:
|
|
|
|
src: templates/x@service.d/plymouth.conf.j2
|
|
|
|
dest: /etc/systemd/system/x@.service.d/plymouth.conf
|
|
|
|
|
2017-11-22 08:11:56 +01:00
|
|
|
- name: systemd-drop-in | start x@.service before xlogin@.service
|
2017-07-31 10:38:02 +02:00
|
|
|
template:
|
|
|
|
src: templates/x@service.d/xlogin.conf.j2
|
|
|
|
dest: /etc/systemd/system/x@.service.d/xlogin.conf
|
|
|
|
|
2017-11-22 08:11:56 +01:00
|
|
|
- name: systemd-drop-in | load environment file for vdr.service
|
2017-07-30 14:29:38 +02:00
|
|
|
template:
|
|
|
|
src: templates/systemd/vdr-environ.j2
|
|
|
|
dest: /etc/systemd/system/vdr.service.d/load-environ.conf
|
|
|
|
|
2017-11-22 08:11:56 +01:00
|
|
|
- name: systemd-drop-in | user@{{ vdr.uid }}.service depends on x@vt7.service
|
2017-07-31 11:45:33 +02:00
|
|
|
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-11-22 08:11:56 +01:00
|
|
|
- name: vdr-config | start softhddevice detached and set audio to pulseaudio
|
2017-07-31 08:22:05 +02:00
|
|
|
lineinfile:
|
|
|
|
path: /etc/vdr/conf.avail/softhddevice.conf
|
2017-12-17 11:37:28 +01:00
|
|
|
line: '{{ item }}'
|
2017-07-31 08:22:05 +02:00
|
|
|
with_items:
|
|
|
|
- '-D'
|
2018-02-23 16:00:41 +01:00
|
|
|
- '-w alsa-driver-broken'
|
2017-07-31 08:22:05 +02:00
|
|
|
# - '-a pulse' # do we need this with our existing asound.conf?
|
|
|
|
|
2019-02-22 00:12:02 +01:00
|
|
|
- name: vdr-config | use vaapi for softhddevice if we got an intel IGP
|
|
|
|
lineinfile:
|
|
|
|
path: /etc/vdr/conf.avail/softhddevice.conf
|
2019-02-22 13:36:09 +01:00
|
|
|
line: '-v va-api'
|
2019-02-22 15:45:00 +01:00
|
|
|
state: '{{ "present" if intel_detected else "absent" }}'
|
2019-02-22 00:12:02 +01:00
|
|
|
|
2017-11-21 11:30:03 +01:00
|
|
|
- name: add a login shell for the user vdr
|
2017-07-30 14:29:38 +02:00
|
|
|
user:
|
|
|
|
name: '{{ vdr.user }}'
|
|
|
|
shell: '/bin/bash'
|
|
|
|
state: present
|
|
|
|
uid: '{{ vdr.uid }}'
|
|
|
|
groups: '{{ vdr.group }}'
|
|
|
|
append: yes
|
|
|
|
|
2017-11-09 10:37:06 +01:00
|
|
|
- name: apt | install packages for xorg
|
2017-07-30 14:29:38 +02:00
|
|
|
apt:
|
2018-10-05 17:49:39 +02:00
|
|
|
name:
|
|
|
|
- xlogin
|
|
|
|
- yavdr-xorg
|
|
|
|
- xorg
|
|
|
|
- xserver-xorg-input-all
|
|
|
|
- xserver-xorg-video-all
|
|
|
|
- openbox
|
|
|
|
- python3-dbus2vdr
|
|
|
|
- python3-yavdrfrontend
|
|
|
|
- read-edid
|
|
|
|
- tmux
|
|
|
|
- vdr-plugin-desktop
|
|
|
|
- vdr-plugin-osd2web
|
|
|
|
- feh
|
|
|
|
#- yavdr-xorg
|
2017-07-30 14:29:38 +02:00
|
|
|
state: present
|
2017-11-09 10:37:06 +01:00
|
|
|
|
2018-04-20 15:26:52 +02:00
|
|
|
- name: apt | install packages for Intel IGP
|
2018-04-20 11:10:11 +02:00
|
|
|
apt:
|
2018-10-05 17:49:39 +02:00
|
|
|
name:
|
|
|
|
- xserver-xorg-video-intel
|
|
|
|
- i965-va-driver-shaders
|
2018-04-20 11:10:11 +02:00
|
|
|
state: present
|
|
|
|
when: intel_detected
|
|
|
|
|
2018-12-11 14:01:04 +01:00
|
|
|
- name: Install yaVDR Media (e.g. Backgrounds)
|
|
|
|
apt:
|
|
|
|
name: yavdr-media
|
2017-12-20 13:18:30 +01:00
|
|
|
|
2017-12-19 14:43:55 +01:00
|
|
|
- name: command | write keyboard configuration to /etc/X11/xorg.conf.d/00-keyboard.conf
|
|
|
|
command: write-x11-keyboard-config
|
2018-01-16 09:27:25 +01:00
|
|
|
args:
|
|
|
|
creates: /etc/X11/xorg.conf.d/00-keyboard.conf
|
2017-12-19 14:43:55 +01:00
|
|
|
# NOTE: write-x11-keyboard-config is in the xlogin package
|
|
|
|
# Ubuntu's systemd is patched, so it does not create the file automatically
|
|
|
|
|
2018-01-24 10:53:05 +01:00
|
|
|
- name: add snippet to ignore eventlircd devices in xorg
|
|
|
|
template:
|
|
|
|
src: templates/xorg-ignore-eventlircd.conf.j2
|
|
|
|
dest: /etc/X11/xorg.conf.d/40-ignore-eventlircd.conf
|
|
|
|
|
2017-11-09 10:37:06 +01:00
|
|
|
- name: apt | install desktop programs
|
|
|
|
apt:
|
2018-10-05 17:49:39 +02:00
|
|
|
name:
|
|
|
|
- xterm
|
|
|
|
- firefox
|
|
|
|
- kiosk-browser
|
2017-11-09 10:37:06 +01:00
|
|
|
state: present
|