- name: create directories for systemd drop-in files file: dest: '{{ item }}' state: directory with_items: - /etc/systemd/system/x@.service.d/ - /etc/systemd/system/vdr.service.d/ - 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: start x@.service before xlogin@.service template: src: templates/x@service.d/xlogin.conf.j2 dest: /etc/systemd/system/x@.service.d/xlogin.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 - 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? - 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 - python3-yavdrfrontend - vdr-plugin-desktop #- yavdr-xorg