yavdr-ansible/roles/yavdr-xorg/tasks/setup-xorg.yml

51 lines
1.2 KiB
YAML
Raw Normal View History

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
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
- python3-dbus2vdr
2017-07-30 14:29:38 +02:00
- python3-yavdrfrontend
- vdr-plugin-desktop
2017-07-30 14:29:38 +02:00
#- yavdr-xorg