add vdr restart handler to autoinstall roles, move satip detection

This commit is contained in:
Alexander Grothe 2017-03-13 19:34:54 +01:00
parent 634a1cd59c
commit dc757482a3
9 changed files with 31 additions and 29 deletions

View File

@ -125,12 +125,6 @@ repositories:
- '{{ ppa_owner }}/{{branch}}-yavdr' - '{{ ppa_owner }}/{{branch}}-yavdr'
- '{{ ppa_owner }}/{{branch}}-kodi' - '{{ ppa_owner }}/{{branch}}-kodi'
#+END_SRC #+END_SRC
** Drivers
#+BEGIN_SRC yaml :tangle group_vars/all :mkdirp yes
drivers:
sundtek: auto
ddvb-dkms: auto
#+END_SRC
** VDR user, directories, special configuration and plugins ** VDR user, directories, special configuration and plugins
#+BEGIN_SRC yaml :tangle group_vars/all :mkdirp yes #+BEGIN_SRC yaml :tangle group_vars/all :mkdirp yes
# properties of the user vdr and vdr-related options # properties of the user vdr and vdr-related options
@ -376,13 +370,6 @@ yavdr-common executes the following tasks:
- debug: - debug:
var: gpus var: gpus
verbosity: 1 verbosity: 1
- name: "detect SAT>IP Server on the network"
action: satip_facts
- debug:
var: satip_detected
verbosity: 1
#+END_SRC #+END_SRC
***** create media directories ***** create media directories
#+BEGIN_SRC yaml :tangle roles/yavdr-common/tasks/main.yml :exports none :mkdirp yes #+BEGIN_SRC yaml :tangle roles/yavdr-common/tasks/main.yml :exports none :mkdirp yes
@ -855,7 +842,11 @@ fi
# https://github.com/yavdr/yavdr-utils/blob/master/events/actions/update-grub # https://github.com/yavdr/yavdr-utils/blob/master/events/actions/update-grub
#+END_SRC #+END_SRC
** TODO autoinstall-drivers ** TODO autoinstall-drivers
*** sundtek It would be nice to be able to detect if it is suitable to install those drivers:
- [ ] sundtek for Sundtek devices (local or network connection)
- [ ] dddvb-dkms if only newer DD cards are detected
- [ ] media-build-experimental (up to kernel 4.8) for "old" cards like TT S2-6400 FF
- [ ] 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/
** autoinstall-satip ** autoinstall-satip
*** tasks *** tasks
@ -863,10 +854,18 @@ fi
--- ---
# file roles/autoinstall-satip/tasks/main.yml # file roles/autoinstall-satip/tasks/main.yml
- name: "detect SAT>IP Server(s) on the network"
action: satip_facts
- debug:
var: satip_detected
verbosity: 1
- name: apt | install vdr-plugin-satip if a Sat>IP server has been detected - name: apt | install vdr-plugin-satip if a Sat>IP server has been detected
apt: apt:
name: vdr-plugin-satip name: vdr-plugin-satip
when: satip_detected when: satip_detected
notify: [ 'Restart VDR' ]
#+END_SRC #+END_SRC
** autoinstall-targavfd ** autoinstall-targavfd
@ -880,6 +879,7 @@ fi
name: vdr-plugin-targavfd name: vdr-plugin-targavfd
when: when:
- '"19c2:6a11" in usb' - '"19c2:6a11" in usb'
notify: [ 'Restart VDR' ]
#+END_SRC #+END_SRC
** autoinstall-imonlcd ** autoinstall-imonlcd
*** tasks *** tasks
@ -893,6 +893,7 @@ fi
when: when:
- '"15c2:0038" in usb' - '"15c2:0038" in usb'
- '"15c2:ffdc" in usb' - '"15c2:ffdc" in usb'
notify: [ 'Restart VDR' ]
#+END_SRC #+END_SRC
** autoinstall-libcecdaemon ** autoinstall-libcecdaemon
*** tasks *** tasks
@ -917,6 +918,7 @@ fi
name: vdr-plugin-pvr350 name: vdr-plugin-pvr350
when: when:
- '"19c2:6a11" in pci' - '"19c2:6a11" in pci'
notify: [ 'Restart VDR' ]
#+END_SRC #+END_SRC
** TODO autoinstall-dvbhddevice ** TODO autoinstall-dvbhddevice
@ -932,6 +934,7 @@ Problem: woher kommt der Treiber (AFAIK noch nicht im Kernel)? Die Firmware soll
when: when:
- '"13c2:300a" in pci' - '"13c2:300a" in pci'
- '"13c2:300b" in pci' - '"13c2:300b" in pci'
notify: [ 'Restart VDR' ]
#+END_SRC #+END_SRC
** autoinstall-dvbsddevice ** autoinstall-dvbsddevice
@ -945,11 +948,8 @@ Problem: woher kommt der Treiber (AFAIK noch nicht im Kernel)? Die Firmware soll
name: vdr-plugin-dvbsddevice name: vdr-plugin-dvbsddevice
when: when:
- '19c2:6a11" in modules' - '19c2:6a11" in modules'
notify: [ 'Restart VDR' ]
#+END_SRC #+END_SRC
** TODO autoinstall-plugins
*** sddevice
*** hddevice
*** pvr350
** template-test ** template-test
#+BEGIN_SRC yaml :tangle roles/template-test/tasks/main.yml #+BEGIN_SRC yaml :tangle roles/template-test/tasks/main.yml
--- ---

View File

@ -13,10 +13,6 @@ repositories:
- '{{ ppa_owner }}/{{branch}}-yavdr' - '{{ ppa_owner }}/{{branch}}-yavdr'
- '{{ ppa_owner }}/{{branch}}-kodi' - '{{ ppa_owner }}/{{branch}}-kodi'
drivers:
sundtek: auto
ddvb-dkms: auto
# properties of the user vdr and vdr-related options # properties of the user vdr and vdr-related options
vdr: vdr:
user: vdr user: vdr

View File

@ -7,3 +7,4 @@
when: when:
- '"13c2:300a" in pci' - '"13c2:300a" in pci'
- '"13c2:300b" in pci' - '"13c2:300b" in pci'
notify: [ 'Restart VDR' ]

View File

@ -6,3 +6,4 @@
name: vdr-plugin-dvbsddevice name: vdr-plugin-dvbsddevice
when: when:
- '19c2:6a11" in modules' - '19c2:6a11" in modules'
notify: [ 'Restart VDR' ]

View File

@ -7,3 +7,4 @@
when: when:
- '"15c2:0038" in usb' - '"15c2:0038" in usb'
- '"15c2:ffdc" in usb' - '"15c2:ffdc" in usb'
notify: [ 'Restart VDR' ]

View File

@ -6,3 +6,4 @@
name: vdr-plugin-pvr350 name: vdr-plugin-pvr350
when: when:
- '"19c2:6a11" in pci' - '"19c2:6a11" in pci'
notify: [ 'Restart VDR' ]

View File

@ -1,7 +1,15 @@
--- ---
# file roles/autoinstall-satip/tasks/main.yml # file roles/autoinstall-satip/tasks/main.yml
- name: "detect SAT>IP Server(s) on the network"
action: satip_facts
- debug:
var: satip_detected
verbosity: 1
- name: apt | install vdr-plugin-satip if a Sat>IP server has been detected - name: apt | install vdr-plugin-satip if a Sat>IP server has been detected
apt: apt:
name: vdr-plugin-satip name: vdr-plugin-satip
when: satip_detected when: satip_detected
notify: [ 'Restart VDR' ]

View File

@ -6,3 +6,4 @@
name: vdr-plugin-targavfd name: vdr-plugin-targavfd
when: when:
- '"19c2:6a11" in usb' - '"19c2:6a11" in usb'
notify: [ 'Restart VDR' ]

View File

@ -99,13 +99,6 @@
var: gpus var: gpus
verbosity: 1 verbosity: 1
- name: "detect SAT>IP Server on the network"
action: satip_facts
- debug:
var: satip_detected
verbosity: 1
- name: create media directories - name: create media directories
file: file:
dest: '{{ item.value }}' dest: '{{ item.value }}'