diff --git a/Manual.html b/Manual.html index 051b3b2..b193be9 100644 --- a/Manual.html +++ b/Manual.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Ansible Playbooks for yaVDR 0.7 @@ -191,7 +191,7 @@ @licstart The following is the entire license notice for the JavaScript code in this tag. -Copyright (C) 2012-2017 Free Software Foundation, Inc. +Copyright (C) 2012-2018 Free Software Foundation, Inc. The JavaScript code in this tag is free software: you can redistribute it and/or modify it under the terms of the GNU @@ -240,233 +240,240 @@ for the JavaScript code in this tag.

Inhaltsverzeichnis

-
-

1 User Stories

+
+

1 User Stories

-
-

1.1 yavdr-full

+
+

1.1 yavdr-full

A User wants to install yaVDR without customization and relies on full automation. @@ -499,22 +506,22 @@ Several roles are used to tie everything together:

-
-

1.1.1 Using vdr, pulseaudio and xorg together

+
+

1.1.1 Using vdr, pulseaudio and xorg together

-
-

2 Introduction

+
+

2 Introduction

One of the major problems we faced with customized Ubuntu ISO files as installation media for prior yaVDR versions has been the limited hardware support and the time consuming process to create and update them. An interesting alternative to this approach is to enable the user to choose the installation medium himself so point releases, kernel versions and additional drivers can be chosen deliberately. After the basic setup is complete (and a working internet connection is available), a fully customizable install script completes the yaVDR installation.

-
-

3 Installing and configuring yaVDR with Ansible

+
+

3 Installing and configuring yaVDR with Ansible

This is an experimental feature which allows to set up a yaVDR installation based on a normal Ubuntu Server 16.04.x installation using Ansible. @@ -546,8 +553,8 @@ We use a callback to generate tags for all roles autmatically:

-
-

3.1 Install script for local usage

+
+

3.1 Install script for local usage

if (( $EUID != 0 )); then
@@ -570,12 +577,12 @@ ansible-playbook yavdr07.yml -b -i 'localhost_inventory
 
-
-

4 Playbooks

+
+

4 Playbooks

-
-

4.1 yavdr07.yml

+
+

4.1 yavdr07.yml

The yavdr07.yml playbook sets up a fully-featured yaVDR installation: @@ -624,8 +631,8 @@ The yavdr07.yml playbook sets up a fully-featured yaVDR installatio

-
-

4.2 yavdr07-headless.yml

+
+

4.2 yavdr07-headless.yml

For a headless server installation yavdr07-headless.yml is a good choice @@ -658,8 +665,8 @@ For a headless server installation yavdr07-headless.yml is a good c

-
-

5 Hosts

+
+

5 Hosts

This playbook can either be used to run the installation on the localhost or any other PC in the network that can be accessed via ssh. Simply add the host names or IP addresses to the hosts file in the respective section: @@ -673,12 +680,12 @@ This playbook can either be used to run the installation on the localhost or any

-
-

6 Group Variables

+
+

6 Group Variables

-
-

6.1 default text for templates used by ansible

+
+

6.1 default text for templates used by ansible

---
@@ -690,8 +697,8 @@ This playbook can either be used to run the installation on the localhost or any
 
-
-

6.2 PPAs

+
+

6.2 PPAs

branch: experimental
@@ -706,8 +713,8 @@ This playbook can either be used to run the installation on the localhost or any
 
-
-

6.3 VDR user, directories, special configuration and plugins

+
+

6.3 VDR user, directories, special configuration and plugins

# properties of the user vdr and vdr-related options
@@ -733,8 +740,8 @@ This playbook can either be used to run the installation on the localhost or any
 
-
-

6.4 Media directories

+
+

6.4 Media directories

# dictionary of directories for (shared) files. Automatically exported via NFS and Samba if those roles are enabled
@@ -749,8 +756,8 @@ This playbook can either be used to run the installation on the localhost or any
 
-
-

6.5 NFS

+
+

6.5 NFS

nfs:
@@ -759,8 +766,8 @@ This playbook can either be used to run the installation on the localhost or any
 
-
-

6.6 Samba

+
+

6.6 Samba

samba:
@@ -770,8 +777,8 @@ This playbook can either be used to run the installation on the localhost or any
 
-
-

6.7 Additional packages

+
+

6.7 Additional packages

# additional packages you want to install
@@ -787,8 +794,8 @@ This playbook can either be used to run the installation on the localhost or any
 
-
-

6.8 System pre-configuration

+
+

6.8 System pre-configuration

frontend: vdr
@@ -803,20 +810,20 @@ This playbook can either be used to run the installation on the localhost or any
 
-
-

7 Roles

+
+

7 Roles

-
-

7.1 install-dependencies

+
+

7.1 install-dependencies

-
-

7.1.1 tasks

+
+

7.1.1 tasks

    -
  1. main.yml
    +
  2. main.yml
    ---
    @@ -836,19 +843,19 @@ This playbook can either be used to run the installation on the localhost or any
     
    -
    -

    7.2 nvidia-387 drivers

    +
    +

    7.2 nvidia-387 drivers

    install nvidia-387 from ppa:graphics-drivers/ppa

    -
    -

    7.2.1 tasks

    +
    +

    7.2.1 tasks

      -
    1. main.yml
      +
    2. main.yml
      ---
      @@ -878,15 +885,15 @@ install nvidia-387 from ppa:graphics-drivers/ppa
       
    -
    -

    7.3 yavdr-common

    +
    +

    7.3 yavdr-common

    This role is used to set up a basic yaVDR installation. It creates the directories, installs the vdr and other useful packages.

    -
    -

    7.3.1 default variables

    +
    +

    7.3.1 default variables

    This section is for reference only, please use the files in global_vars for customizations. @@ -899,7 +906,7 @@ This section is for reference only, please use the files in global_vars

      -
    1. Repositories
      +
    2. Repositories

      You can set a list of package repositories which provide the necessary packages. Feel free to use own PPAs if you need special customization to the VDR and it’s plugins. @@ -916,7 +923,7 @@ You can set a list of package repositories which provide the necessary packages.

  3. -
  4. Drivers
    +
  5. Drivers

    Automatically installed drivers can be very useful, but if you know you need a certain driver, you can simply set it’s value to true. If you don’t want a driver to be installed, set it’s value to false. @@ -929,7 +936,7 @@ Automatically installed drivers can be very useful, but if you know you need a c

-
  • Additional Packages
    +
  • Additional Packages

    Add additional packages you would like to have on your installation to this list @@ -943,7 +950,7 @@ Add additional packages you would like to have on your installation to this list

  • -
  • VDR
    +
  • VDR

    This section allows you to set the recording directory, the user and group that runs the vdr and it’s home directory. @@ -976,15 +983,15 @@ This section allows you to set the recording directory, the user and group that

  • -
    -

    7.3.2 tasks

    +
    +

    7.3.2 tasks

    yavdr-common executes the following tasks:

      -
    1. main.yml
      +
    2. main.yml
      ---
      @@ -1000,7 +1007,7 @@ yavdr-common executes the following tasks:
       
        -
      1. Disable default installation of recommended packages
        +
      2. Disable default installation of recommended packages

        This task prevents apt to automatically install all recommended dependencies for packages: @@ -1017,7 +1024,7 @@ This task prevents apt to automatically install all recommended dependencies for

    -
  • Set up package repositories
    +
  • Set up package repositories
    - name: add PPAs
    @@ -1037,7 +1044,7 @@ This task prevents apt to automatically install all recommended dependencies for
     
  • -
  • Use bash instead of dash
    +
  • Use bash instead of dash
    - name: use bash instead of dash
    @@ -1049,10 +1056,10 @@ This task prevents apt to automatically install all recommended dependencies for
     
  • -
  • create user vdr
  • -
  • Disable release-upgrade notifications
    +
  • create user vdr
  • +
  • Disable release-upgrade notifications
      -
    1. SOMEDAY move from lineinfile to template
      +
    2. SOMEDAY move from lineinfile to template
      - name: disable release-upgrade notifications
      @@ -1074,7 +1081,7 @@ This task prevents apt to automatically install all recommended dependencies for
       
  • -
  • Install essential packages
    +
  • Install essential packages
    - name: apt | install basic packages
    @@ -1106,7 +1113,7 @@ This task prevents apt to automatically install all recommended dependencies for
     
  • -
  • Install additional packages (user defined)
    +
  • Install additional packages (user defined)
    - name: apt | install extra packages
    @@ -1120,13 +1127,13 @@ This task prevents apt to automatically install all recommended dependencies for
     
  • -
  • create directories
  • +
  • create directories
  • -
    -

    7.3.3 templates

    +
    +

    7.3.3 templates

    {{ ansible_managed_file | comment('c') }}
    @@ -1138,12 +1145,12 @@ APT::Install-Suggests "0";
     
    -
    -

    7.4 collect facts about the system with custom modules

    +
    +

    7.4 collect facts about the system with custom modules

    -
    -

    7.4.1 variables

    +
    +

    7.4.1 variables

    first_run: False
    @@ -1151,12 +1158,12 @@ APT::Install-Suggests "0";
     
    -
    -

    7.4.2 tasks

    +
    +

    7.4.2 tasks

      -
    1. main.yml
      +
    2. main.yml
      - name: get information about usb and pci hardware and loaded kernel modules
      @@ -1196,16 +1203,16 @@ APT::Install-Suggests "0";
       
    -
    -

    7.5 vdr

    +
    +

    7.5 vdr

    -
    -

    7.5.1 tasks

    +
    +

    7.5.1 tasks

      -
    1. install the basic vdr packages
      +
    2. install the basic vdr packages
      ---
      @@ -1224,7 +1231,7 @@ APT::Install-Suggests "0";
       
    3. -
    4. Add svdrp/svdrp-disc to /etc/services
      +
    5. Add svdrp/svdrp-disc to /etc/services
      - name: add svdrp and svdrp-disc to /etc/services
      @@ -1239,7 +1246,7 @@ APT::Install-Suggests "0";
       
    6. -
    7. Set up the recording directory for the vdr user
      +
    8. Set up the recording directory for the vdr user
      - name: create vdr recdir
      @@ -1274,7 +1281,7 @@ APT::Install-Suggests "0";
       
    9. -
    10. Install additional vdr plugins
      +
    11. Install additional vdr plugins

      The additional plugins to install can be set in the variable {{vdr_plugins}} in the group variables @@ -1292,7 +1299,7 @@ The additional plugins to install can be set in the variable {{vdr_plugins

    -
  • copy vdr configuration files (if they don’t exist yet)
    +
  • copy vdr configuration files (if they don’t exist yet)
    - name: ensure vdr is stopped
    @@ -1325,15 +1332,15 @@ The additional plugins to install can be set in the variable {{vdr_plugins
     
     
    -
    -

    7.5.2 templates

    +
    +

    7.5.2 templates

    -
    -

    7.5.3 files

    +
    +

    7.5.3 files

      -
    1. remote.conf
      +
    2. remote.conf
      LIRC.Up KEY_UP
      @@ -1468,7 +1475,7 @@ XKeySym.Next       XF86AudioNext
       
    3. -
    4. keymacros.conf
      +
    5. keymacros.conf
      # Remote control key macros for VDR
      @@ -1494,12 +1501,12 @@ User0     @osdteletext
       
    -
    -

    7.6 STARTED yavdr-network

    +
    +

    7.6 STARTED yavdr-network

    -
    -

    7.6.1 default variables

    +
    +

    7.6.1 default variables

    install_avahi: true
    @@ -1507,8 +1514,8 @@ User0     @osdteletext
     
    -
    -

    7.6.2 tasks

    +
    +

    7.6.2 tasks

    ---
    @@ -1578,15 +1585,15 @@ User0     @osdteletext
     
    -
    -

    7.7 nfs-server

    +
    +

    7.7 nfs-server

    -
    -

    7.7.1 TODO avahi-services für NFS beim Stoppen des nfs-kernel-servers depublizieren, beim Start wieder announcen

    +
    +

    7.7.1 TODO avahi-services für NFS beim Stoppen des nfs-kernel-servers depublizieren, beim Start wieder announcen

    -
    -

    7.7.2 tasks

    +
    +

    7.7.2 tasks

    ---
    @@ -1615,12 +1622,12 @@ User0     @osdteletext
     
    -
    -

    7.7.3 templates

    +
    +

    7.7.3 templates

      -
    1. /etc/exports
      +
    2. /etc/exports
      /srv *(rw,fsid=0,sync,no_subtree_check,all_squash,anongid={{ vdr.gid }},anonuid={{ vdr.uid }})
      @@ -1631,7 +1638,7 @@ User0     @osdteletext
       
    3. -
    4. avahi services
      +
    5. avahi services
      <?xml version="1.0" standalone='no'?>
      @@ -1652,12 +1659,12 @@ User0     @osdteletext
       
    -
    -

    7.8 STARTED yavdr-remote

    +
    +

    7.8 STARTED yavdr-remote

    -
    -

    7.8.1 default variables

    +
    +

    7.8.1 default variables

    lircd0_socket: /var/run/lirc/lircd0
    @@ -1665,8 +1672,8 @@ User0     @osdteletext
     
    -
    -

    7.8.2 tasks

    +
    +

    7.8.2 tasks

    ---
    @@ -1730,12 +1737,12 @@ User0     @osdteletext
     
    -
    -

    7.8.3 templates

    +
    +

    7.8.3 templates

      -
    1. Systemd Drop-in to start vdr with lirc support
      +
    2. Systemd Drop-in to start vdr with lirc support
      {% if frontend != 'kodi' %}
      @@ -1746,7 +1753,7 @@ User0     @osdteletext
       
    3. -
    4. Systemd Drop-in to start lircd2uinput with lircd
      +
    5. Systemd Drop-in to start lircd2uinput with lircd
      [Service]
      @@ -1756,7 +1763,7 @@ User0     @osdteletext
       
    6. -
    7. create /etc/rc_maps.cfg
      +
    8. create /etc/rc_maps.cfg
      #
      @@ -1947,17 +1954,17 @@ ati_remote    rc-medion-x10-digitainer   /lib/udev/rc_keymaps/rc-medion-x10-digi
       
    -
    -

    7.8.4 files

    +
    +

    7.8.4 files

    -
    -

    7.9 pulseaudio

    +
    +

    7.9 pulseaudio

    -
    -

    7.9.1 tasks

    +
    +

    7.9.1 tasks

    ---
    @@ -1980,8 +1987,8 @@ ati_remote    rc-medion-x10-digitainer   /lib/udev/rc_keymaps/rc-medion-x10-digi
     
    -
    -

    7.9.2 templates

    +
    +

    7.9.2 templates

    # Use PulseAudio by default
    @@ -2003,12 +2010,12 @@ ati_remote    rc-medion-x10-digitainer   /lib/udev/rc_keymaps/rc-medion-x10-digi
     
    -
    -

    7.10 yavdr-xorg

    +
    +

    7.10 yavdr-xorg

    -
    -

    7.10.1 About the GUI session

    +
    +

    7.10.1 About the GUI session

    The X-Server is started by using the two systemd units xlogin@.service and x@.service provided by the package xlogin. The former is enabled (and started) for the vdr user - which results (using the default settings for the user vdr with the uid 666) in the activation of xlogin@vdr.service when reaching the graphical.target. @@ -2037,8 +2044,8 @@ In order to achive a clean shutdown of the session, x@t7.service is

    -
    -

    7.10.2 default variables

    +
    +

    7.10.2 default variables

    first_run: False
    @@ -2046,12 +2053,12 @@ In order to achive a clean shutdown of the session, x@t7.service is
     
    -
    -

    7.10.3 tasks

    +
    +

    7.10.3 tasks

      -
    1. main.yml
      +
    2. main.yml
      ---
      @@ -2066,7 +2073,7 @@ In order to achive a clean shutdown of the session, x@t7.service is
       
    3. -
    4. setup-xorg.yml
      +
    5. setup-xorg.yml
      ---
      @@ -2170,7 +2177,7 @@ In order to achive a clean shutdown of the session, x@t7.service is
       
    6. -
    7. detect-xorg.yml
      +
    8. detect-xorg.yml
      ---
      @@ -2292,7 +2299,7 @@ In order to achive a clean shutdown of the session, x@t7.service is
       
    9. -
    10. desktop-session.yml
      +
    11. desktop-session.yml
      ---
      @@ -2411,14 +2418,14 @@ In order to achive a clean shutdown of the session, x@t7.service is
       
    -
    -

    7.10.4 templates

    +
    +

    7.10.4 templates

      -
    1. xorg
      +
    2. xorg
        -
      1. x-verbose@.service
        +
      2. x-verbose@.service
        # file: roles/yavdr-xorg/templates/systemd/system/x-verbose@.service.j2
        @@ -2434,7 +2441,7 @@ In order to achive a clean shutdown of the session, x@t7.service is
         
      3. -
      4. Drop-in snippet for x@.service
        +
      5. Drop-in snippet for x@.service
        [Unit]
        @@ -2455,7 +2462,7 @@ In order to achive a clean shutdown of the session, x@t7.service is
         
      6. -
      7. Drop-in snippet for vdr.service
        +
      8. Drop-in snippet for vdr.service
        {{ ansible_managed_file | comment }}
        @@ -2467,7 +2474,7 @@ In order to achive a clean shutdown of the session, x@t7.service is
         
      9. -
      10. .xinitrc
        +
      11. .xinitrc
        #!/bin/bash
        @@ -2477,7 +2484,7 @@ In order to achive a clean shutdown of the session, x@t7.service is
         
      12. -
      13. xorg.conf
        +
      14. xorg.conf
        Section "Device"
        @@ -2806,7 +2813,7 @@ EndSection
         
      15. -
      16. .Xresources
        +
      17. .Xresources
        xterm*background: Black
        @@ -2831,7 +2838,7 @@ XTerm.vt100.font: 7x13
         
    3. -
    4. vdr
      +
    5. vdr
      [Service]
      @@ -2847,9 +2854,9 @@ XTerm.vt100.font: 7x13
       
    6. -
    7. Systemd User Session
      +
    8. Systemd User Session
        -
      1. yavdr-desktop.target
        +
      2. yavdr-desktop.target
        [Unit]
        @@ -2863,7 +2870,7 @@ XTerm.vt100.font: 7x13
         
      3. -
      4. detect-second-display
        +
      5. detect-second-display
        [Unit]
        @@ -2879,7 +2886,7 @@ XTerm.vt100.font: 7x13
         
      6. -
      7. openbox-second.service
        +
      8. openbox-second.service
        [Unit]
        @@ -2901,7 +2908,7 @@ XTerm.vt100.font: 7x13
         
      9. -
      10. osd2web.service
        +
      11. osd2web.service
        [Unit]
        @@ -2922,7 +2929,7 @@ XTerm.vt100.font: 7x13
         
      12. -
      13. tmux.service
        +
      14. tmux.service
        [Unit]
        @@ -2941,7 +2948,7 @@ XTerm.vt100.font: 7x13
         
      15. -
      16. wm-exit.service
        +
      17. wm-exit.service
        [Unit]
        @@ -2961,7 +2968,7 @@ XTerm.vt100.font: 7x13
         
    9. -
    10. irexec
      +
    11. irexec

      irexec.service starts irexec for the user session @@ -2991,9 +2998,9 @@ end

  • -
  • openbox
    +
  • openbox
      -
    1. autostart
      +
    2. autostart
      # forward environment variables to an environment file and the systemd user session
      @@ -3029,7 +3036,7 @@ systemctl --user isolate yavdr-desktop.target
       
    3. -
    4. rc.xml
      +
    5. rc.xml
      <?xml version="1.0" encoding="UTF-8"?>
      @@ -3849,12 +3856,12 @@ systemctl --user isolate yavdr-desktop.target
       
      -
      -

      7.11 samba-install

      +
      +

      7.11 samba-install

      -
      -

      7.11.1 tasks

      +
      +

      7.11.1 tasks

      ---
      @@ -3876,12 +3883,12 @@ systemctl --user isolate yavdr-desktop.target
       
      -
      -

      7.12 samba-config

      +
      +

      7.12 samba-config

      -
      -

      7.12.1 tasks

      +
      +

      7.12.1 tasks

      ---
      @@ -3906,14 +3913,14 @@ systemctl --user isolate yavdr-desktop.target
       
      -
      -

      7.12.2 templates

      +
      +

      7.12.2 templates

        -
      1. smb.conf
        +
      2. smb.conf
          -
        1. global settings
          +
        2. global settings
          {{ ansible_managed_file | comment }}
          @@ -3999,7 +4006,7 @@ systemctl --user isolate yavdr-desktop.target
           
        3. -
        4. media directories
          +
        5. media directories
          {% for name, path in media_dirs.iteritems() %}
          @@ -4021,7 +4028,7 @@ systemctl --user isolate yavdr-desktop.target
           
        6. -
        7. include custom samba exports
          +
        8. include custom samba exports
          include = /etc/samba/smb.conf.custom
          @@ -4034,15 +4041,15 @@ systemctl --user isolate yavdr-desktop.target
           
      -
      -

      7.13 STARTED autoinstall-drivers

      +
      +

      7.13 STARTED autoinstall-drivers

      It would be nice to be able to detect if it is suitable to install those drivers:

      -
      -

      7.13.1 TODO sundtek for Sundtek devices (local or network connection)

      +
      +

      7.13.1 TODO sundtek for Sundtek devices (local or network connection)

      Vendor-IDs: @@ -4053,14 +4060,14 @@ Vendor-IDs:

      -
      -

      7.13.2 TODO dddvb-dkms if only newer DD cards are detected

      +
      +

      7.13.2 TODO dddvb-dkms if only newer DD cards are detected

      -
      -

      7.13.3 TODO media-build-experimental (up to kernel 4.8) for „old“ cards like TT S2-6400 FF

      +
      +

      7.13.3 TODO media-build-experimental (up to kernel 4.8) for „old“ cards like TT S2-6400 FF

      -
      -

      7.13.4 TODO newly merged DD drivers

      +
      +

      7.13.4 TODO newly merged DD drivers

      from http://www.vdr-portal.de/board18-vdr-hardware/board102-dvb-karten/120817-treiber-der-cine-ctv6-ddbridge-ci-in-den-kernel-integrieren/ @@ -4069,15 +4076,15 @@ from -

      7.14 autoinstall-ubuntu-drivers

      +
      +

      7.14 autoinstall-ubuntu-drivers

      The tool ubuntu-drivers is used to install the matching driver version for nvidia graphics cards, virtualbox guest additions and Intel and AMD microcode updates.

      -
      -

      7.14.1 tasks

      +
      +

      7.14.1 tasks

      ---
      @@ -4101,8 +4108,8 @@ The tool ubuntu-drivers is used to install the matching driver version for nvidi
       
      -
      -

      7.15 autoinstall-virtualbox-guest

      +
      +

      7.15 autoinstall-virtualbox-guest

      This role installs the guest additions for virtualbox guests on Ubuntu 16.04 @@ -4133,12 +4140,12 @@ This role installs the guest additions for virtualbox guests on Ubuntu 16.04

      -
      -

      7.16 autoinstall-atric-usb

      +
      +

      7.16 autoinstall-atric-usb

      -
      -

      7.16.1 dependencies

      +
      +

      7.16.1 dependencies

      ---
      @@ -4149,8 +4156,8 @@ This role installs the guest additions for virtualbox guests on Ubuntu 16.04
       
      -
      -

      7.16.2 tasks

      +
      +

      7.16.2 tasks

      ---
      @@ -4188,13 +4195,13 @@ This role installs the guest additions for virtualbox guests on Ubuntu 16.04
             tags:
               - systemd
       
      -  when: '"04d8:f844" in usb'
      +  when: '"10c4:876c" in usb'
       
      -
      -

      7.16.3 templates

      +
      +

      7.16.3 templates

      {{ ansible_managed_file | comment }}
      @@ -4223,16 +4230,105 @@ This role installs the guest additions for virtualbox guests on Ubuntu 16.04
       
      -
      -

      7.17 autoinstall-satip

      +
      +

      7.17 autoinstall-yausbir

      +
      +
      +

      7.17.1 dependencies

      +
      +
      +
      ---
      +dependencies:
      +    - { role: yavdr-remote }
      +
      +
      +
      +
      +
      +
      +

      7.17.2 tasks

      +
      +
      +
      ---
      +# file roles/autoinstall-atric-usb/tasks/main.yml
      +
      +- name: install and configure Atric IR-WakeupUSB
      +  block:
      +    - name: apt | install lirc-drv-yausbir
      +      apt:
      +        name: lirc-drv-yausbir
      +        state: present
      +      tags:
      +        - packages
      +
      +    - name: write lirc configuration
      +      template:
      +        src: templates/lirc_options.conf.j2
      +        dest: /etc/lirc/lirc_options.conf
      +      tags:
      +        - config
      +        - systemd
      +
      +    - name: enable lircd, eventlircd, lircd2uinput
      +      systemd:
      +        name: '{{ item }}'
      +        enabled: yes
      +        state: started
      +        masked: no
      +        daemon_reload: yes
      +      with_items:
      +        - eventlircd.socket
      +        - eventlircd.service
      +        - lircd2uinput.service
      +        - lircd.service
      +      tags:
      +        - systemd
      +
      +  when: '"04d8:f844" in usb'
      +
      +
      +
      +
      +
      +

      7.17.3 templates

      +
      +
      +
      {{ ansible_managed_file | comment }}
      +
      +[lircd]
      +nodaemon        = False
      +driver          = yausbir
      +output          = /var/run/lirc/lircd0
      +pidfile         = /var/run/lirc/lircd0.pid
      +plugindir       = /usr/lib/x86_64-linux-gnu/lirc/plugins
      +permission      = 666
      +allow-simulate  = No
      +repeat-max      = 600
      +#loglevel       = 6
      +#release        = true
      +#release_suffix = _EVUP
      +#logfile        = ...
      +#driver-options = ...
      +
      +[lircmd]
      +uinput          = False
      +nodaemon        = False
      +
      +
      +
      +
      +
      +
      +

      7.18 autoinstall-satip

      +

      If a Sat>IP Server responds to a discovery request, the package vdr-plugin-satip is installed.

      -
      -

      7.17.1 tasks

      -
      +
      +

      7.18.1 tasks

      +
      ---
       # file roles/autoinstall-satip/tasks/main.yml
      @@ -4256,13 +4352,13 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-sa
       
      -
      -

      7.18 autoinstall-targavfd

      -
      +
      +

      7.19 autoinstall-targavfd

      +
      -
      -

      7.18.1 tasks

      -
      +
      +

      7.19.1 tasks

      +
      ---
       # file roles/autoinstall-targavfd/tasks/main.yml
      @@ -4277,13 +4373,13 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-sa
       
      -
      -

      7.19 autoinstall-imonlcd

      -
      +
      +

      7.20 autoinstall-imonlcd

      +
      -
      -

      7.19.1 tasks

      -
      +
      +

      7.20.1 tasks

      +
      ---
       # file roles/autoinstall-imonlcd/tasks/main.yml
      @@ -4298,13 +4394,13 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-sa
       
      -
      -

      7.20 autoinstall-libcecdaemon

      -
      +
      +

      7.21 autoinstall-libcecdaemon

      +
      -
      -

      7.20.1 tasks

      -
      +
      +

      7.21.1 tasks

      +
      ---
       # file roles/autoinstall-libcec-daemon/tasks/main.yml
      @@ -4319,13 +4415,13 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-sa
       
      -
      -

      7.21 autoinstall-pvr350

      -
      +
      +

      7.22 autoinstall-pvr350

      +
      -
      -

      7.21.1 tasks

      -
      +
      +

      7.22.1 tasks

      +
      ---
       # file roles/autoinstall-pvr350/tasks/main.yml
      @@ -4340,9 +4436,9 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-sa
       
      -
      -

      7.22 autoinstall-hauppauge-pvr

      -
      +
      +

      7.23 autoinstall-hauppauge-pvr

      +
      ---
       # file roles/autoinstall-hauppauge-pvr/tasks/main.yml
      @@ -4356,13 +4452,13 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-sa
       
      -
      -

      7.23 autoinstall-dvbsky-firmware

      -
      +
      +

      7.24 autoinstall-dvbsky-firmware

      +
      -
      -

      7.23.1 defaults

      -
      +
      +

      7.24.1 defaults

      +
      ---
       # file roles/autoinstall-dvbsky-firmware
      @@ -4371,9 +4467,9 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-sa
       
      -
      -

      7.23.2 tasks

      -
      +
      +

      7.24.2 tasks

      +
      ---
       # file roles/autoinstall-dvbsky-firmware/tasks/main.yml
      @@ -4422,16 +4518,16 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-sa
       
      -
      -

      7.24 TODO autoinstall-dvbhddevice

      -
      +
      +

      7.25 TODO autoinstall-dvbhddevice

      +

      Problem: woher kommt der Treiber (AFAIK noch nicht im Kernel)? Die Firmware sollte in yavdr-firmware stecken

      -
      -

      7.24.1 tasks

      -
      +
      +

      7.25.1 tasks

      +
      ---
       # file roles/autoinstall-dvbhddevice/tasks/main.yml
      @@ -4447,13 +4543,13 @@ Problem: woher kommt der Treiber (AFAIK noch nicht im Kernel)? Die Firmware soll
       
      -
      -

      7.25 autoinstall-dvbsddevice

      -
      +
      +

      7.26 autoinstall-dvbsddevice

      +
      -
      -

      7.25.1 tasks

      -
      +
      +

      7.26.1 tasks

      +
      ---
       # file roles/autoinstall-dvbsddevice/tasks/main.yml
      @@ -4470,13 +4566,13 @@ Problem: woher kommt der Treiber (AFAIK noch nicht im Kernel)? Die Firmware soll
       
      -
      -

      7.26 autoinstall-hardware-irmp

      -
      +
      +

      7.27 autoinstall-hardware-irmp

      +
      -
      -

      7.26.1 tasks

      -
      +
      +

      7.27.1 tasks

      +
      ---
       # file roles/autoinstall-hardware-irmp/tasks/main.yml
      @@ -4491,24 +4587,24 @@ Problem: woher kommt der Treiber (AFAIK noch nicht im Kernel)? Die Firmware soll
       
        -
      1. TODO add other device ids if necessary
      2. +
      3. TODO add other device ids if necessary
      -
      -

      7.27 kodi

      -
      +
      +

      7.28 kodi

      +
      -
      -

      7.27.1 tasks

      -
      + -
      -

      7.27.2 templates

      -
      +
      +

      7.28.2 templates

      +
        -
      1. kodi.service
        -
        +
      2. kodi.service
        +

        This systemd unit for the user session starts (and stops) kodi.

        @@ -4613,16 +4709,16 @@ This systemd unit for the user session starts (and stops) kodi.
      -
      -

      7.27.3 files

      -
      +
      +

      7.28.3 files

      +

      Those configuration files provide a preconfiguration for kodi which overrides the system wide configuration

        -
      1. Lircmap.xml
        -
        +
      2. Lircmap.xml
        +

        This file allows to map keys sent by remotes via eventlircd (which uses the name devinput) to kodi key names.

        @@ -4691,15 +4787,15 @@ This file allows to map keys sent by remotes via eventlircd (which uses the name
    6. -
    7. keymaps
      -
      +
    8. keymaps
      +

      This file maps the keys defined in Lircmap.xml to actions within kodi.

        -
      1. remote.xml
        -
        +
      2. remote.xml
        +
        <!-- This file contains the mapping of keys (gamepad, remote, and keyboard) to actions within XBMC -->
         <!-- The <global> section is a fall through - they will only be used if the button is not          -->
        @@ -5249,17 +5345,17 @@ This file maps the keys defined in Lircmap.xml to actions within kodi.
         
  • -
    -

    7.28 dvd

    -
    +
    +

    7.29 dvd

    +
    -
    -

    7.28.1 tasks

    -
    +
    +

    7.29.1 tasks

    +
      -
    • install libdvd-pkg, allow programs to eject optical media
      -
      +
    • install libdvd-pkg, allow programs to eject optical media
      +
      ---
       # file: roles/dvd/tasks/main.yml
      @@ -5299,9 +5395,9 @@ This file maps the keys defined in Lircmap.xml to actions within kodi.
       
    -
    -

    7.29 template-test

    -
    +
    +

    7.30 template-test

    +
    ---
     
    @@ -5541,13 +5637,13 @@ EndSection
     
    -
    -

    7.30 wakeup

    -
    +
    +

    7.31 wakeup

    +
    -
    -

    7.30.1 defaults

    -
    +
    +

    7.31.1 defaults

    +
    ---
     # file roles/wakeup/defaults/main.yml
    @@ -5556,9 +5652,9 @@ EndSection
     
    -
    -

    7.30.2 tasks

    -
    +
    +

    7.31.2 tasks

    +
    ---
     # file roles/wakeup/tasks/main.yml
    @@ -5578,9 +5674,9 @@ EndSection
     
    -
    -

    7.30.3 templates

    -
    +
    +

    7.31.3 templates

    +
    {{ ansible_managed_file | comment }}
     
    @@ -5605,13 +5701,13 @@ ACPI_START_AHEAD=5
     
    -
    -

    7.31 grub-config

    -
    +
    +

    7.32 grub-config

    +
    -
    -

    7.31.1 default variables

    -
    +
    +

    7.32.1 default variables

    +
    system:
       shutdown: poweroff
    @@ -5622,9 +5718,9 @@ ACPI_START_AHEAD=5
     
    -
    -

    7.31.2 tasks

    -
    +
    +

    7.32.2 tasks

    +
    ---
     
    @@ -5648,9 +5744,9 @@ ACPI_START_AHEAD=5
     
    -
    -

    7.31.3 templates

    -
    +
    +

    7.32.3 templates

    +
    #!/bin/sh
     exec tail -n +3 $0
    @@ -5672,9 +5768,9 @@ menuentry "PowerOff" {
     
    -
    -

    7.31.4 handlers

    -
    +
    +

    7.32.4 handlers

    +
    ---
     
    @@ -5691,15 +5787,15 @@ menuentry "PowerOff" {
     
    -
    -

    8 Modules

    +
    +

    8 Modules

    This section contains custom modules for the yaVDR Playbooks. They are used to collect facts about the system and configure applications and daemons.

    -
    -

    8.1 hardware_facts.py

    +
    +

    8.1 hardware_facts.py

    # This Module collects the vendor- and device ids for USB- and PCI(e)-devices and currently loaded kernel modules.
    @@ -5876,8 +5972,8 @@ This section contains custom modules for the yaVDR Playbooks. They are used to c
     
    -
    -

    8.2 satip_facts.py

    +
    +

    8.2 satip_facts.py

    DOCUMENTATION = '''
    @@ -6001,8 +6097,8 @@ This section contains custom modules for the yaVDR Playbooks. They are used to c
     
    -
    -

    8.3 xrandr_facts.py

    +
    +

    8.3 xrandr_facts.py

    • [ ] support multiple screens (-d :0.0 .. :0.n)
    • @@ -6284,8 +6380,8 @@ This section contains custom modules for the yaVDR Playbooks. They are used to c
    -
    -

    9 Handlers

    +
    +

    9 Handlers

    - name: Reconfigure unattended upgrades with dpkg
    @@ -6358,7 +6454,7 @@ This section contains custom modules for the yaVDR Playbooks. They are used to c
     

    Autor: Alexander Grothe <seahawk1986@gmx.de>

    -

    Created: 2018-01-07 So 19:00

    +

    Created: 2018-01-16 Di 09:04

    Validate

    diff --git a/Manual.org b/Manual.org index 65ed528..d279ea4 100644 --- a/Manual.org +++ b/Manual.org @@ -3629,7 +3629,7 @@ dependencies: tags: - systemd - when: '"04d8:f844" in usb' + when: '"10c4:876c" in usb' #+END_SRC *** templates #+BEGIN_SRC conf :tangle roles/autoinstall-atric-usb/templates/lirc_options.conf.j2 :padline no @@ -3651,6 +3651,76 @@ repeat-max = 600 #logfile = ... #driver-options = ... +[lircmd] +uinput = False +nodaemon = False +#+END_SRC +** autoinstall-yausbir +*** dependencies +#+BEGIN_SRC yaml :tangle roles/autoinstall-yausbir/meta/main.yml :padline no +--- +dependencies: + - { role: yavdr-remote } + +#+END_SRC +*** tasks +#+BEGIN_SRC yaml :tangle roles/autoinstall-yausbir/tasks/main.yml :padline no +--- +# file roles/autoinstall-atric-usb/tasks/main.yml + +- name: install and configure Atric IR-WakeupUSB + block: + - name: apt | install lirc-drv-yausbir + apt: + name: lirc-drv-yausbir + state: present + tags: + - packages + + - name: write lirc configuration + template: + src: templates/lirc_options.conf.j2 + dest: /etc/lirc/lirc_options.conf + tags: + - config + - systemd + + - name: enable lircd, eventlircd, lircd2uinput + systemd: + name: '{{ item }}' + enabled: yes + state: started + masked: no + daemon_reload: yes + with_items: + - eventlircd.socket + - eventlircd.service + - lircd2uinput.service + - lircd.service + tags: + - systemd + + when: '"04d8:f844" in usb' +#+END_SRC +*** templates +#+BEGIN_SRC conf :tangle roles/autoinstall-yausbir/templates/lirc_options.conf.j2 :padline no +{{ ansible_managed_file | comment }} + +[lircd] +nodaemon = False +driver = yausbir +output = /var/run/lirc/lircd0 +pidfile = /var/run/lirc/lircd0.pid +plugindir = /usr/lib/x86_64-linux-gnu/lirc/plugins +permission = 666 +allow-simulate = No +repeat-max = 600 +#loglevel = 6 +#release = true +#release_suffix = _EVUP +#logfile = ... +#driver-options = ... + [lircmd] uinput = False nodaemon = False diff --git a/roles/autoinstall-atric-usb/tasks/main.yml b/roles/autoinstall-atric-usb/tasks/main.yml index 5724da4..b2df5b7 100644 --- a/roles/autoinstall-atric-usb/tasks/main.yml +++ b/roles/autoinstall-atric-usb/tasks/main.yml @@ -33,4 +33,4 @@ tags: - systemd - when: '"04d8:f844" in usb' + when: '"10c4:876c" in usb' diff --git a/roles/autoinstall-yausbir/meta/main.yml b/roles/autoinstall-yausbir/meta/main.yml new file mode 100644 index 0000000..33f17ac --- /dev/null +++ b/roles/autoinstall-yausbir/meta/main.yml @@ -0,0 +1,3 @@ +--- +dependencies: + - { role: yavdr-remote } diff --git a/roles/autoinstall-yausbir/tasks/main.yml b/roles/autoinstall-yausbir/tasks/main.yml new file mode 100644 index 0000000..edf1d85 --- /dev/null +++ b/roles/autoinstall-yausbir/tasks/main.yml @@ -0,0 +1,36 @@ +--- +# file roles/autoinstall-atric-usb/tasks/main.yml + +- name: install and configure Atric IR-WakeupUSB + block: + - name: apt | install lirc-drv-yausbir + apt: + name: lirc-drv-yausbir + state: present + tags: + - packages + + - name: write lirc configuration + template: + src: templates/lirc_options.conf.j2 + dest: /etc/lirc/lirc_options.conf + tags: + - config + - systemd + + - name: enable lircd, eventlircd, lircd2uinput + systemd: + name: '{{ item }}' + enabled: yes + state: started + masked: no + daemon_reload: yes + with_items: + - eventlircd.socket + - eventlircd.service + - lircd2uinput.service + - lircd.service + tags: + - systemd + + when: '"04d8:f844" in usb' diff --git a/roles/autoinstall-yausbir/templates/lirc_options.conf.j2 b/roles/autoinstall-yausbir/templates/lirc_options.conf.j2 new file mode 100644 index 0000000..5e1311c --- /dev/null +++ b/roles/autoinstall-yausbir/templates/lirc_options.conf.j2 @@ -0,0 +1,20 @@ +{{ ansible_managed_file | comment }} + +[lircd] +nodaemon = False +driver = yausbir +output = /var/run/lirc/lircd0 +pidfile = /var/run/lirc/lircd0.pid +plugindir = /usr/lib/x86_64-linux-gnu/lirc/plugins +permission = 666 +allow-simulate = No +repeat-max = 600 +#loglevel = 6 +#release = true +#release_suffix = _EVUP +#logfile = ... +#driver-options = ... + +[lircmd] +uinput = False +nodaemon = False