Update satip_facts.py, fix syntax for hardware autoinstall checks

This commit is contained in:
Alexander Grothe
2017-09-04 12:29:53 +02:00
parent d2630e24d3
commit bdda4bc4c0
9 changed files with 170 additions and 76 deletions

View File

@@ -4,7 +4,5 @@
- name: apt | install vdr-plugin-dvbhddevice if connected
apt:
name: vdr-plugin-dvbhddevice
when:
- '"13c2:300a" in pci'
- '"13c2:300b" in pci'
when: '"13c2:300a" in pci or "13c2:300b" in pci'
notify: [ 'Restart VDR' ]

View File

@@ -4,6 +4,5 @@
- name: apt | install vdr-plugin-dvbsddevice if module is loaded
apt:
name: vdr-plugin-dvbsddevice
when:
- '"dvb_ttpci" in modules'
when: '"dvb_ttpci" in modules'
notify: [ 'Restart VDR' ]

View File

@@ -4,7 +4,5 @@
- name: apt | install vdr-plugin-pvrinput if a haupauge pvr card is found
apt:
name: vdr-plugin-pvrinput
when:
- "0070:4000" in pci
- "4444:0016" in pci
when: '"0070:4000" in pci or "4444:0016" in pci'
notify: [ 'Restart VDR' ]

View File

@@ -4,7 +4,5 @@
- name: apt | install vdr-plugin-imonlcd if connected
apt:
name: vdr-plugin-imonlcd
when:
- "15c2:0038" in usb
- "15c2:ffdc" in usb
when: '"15c2:0038" in usb or "15c2:ffdc" in usb'
notify: [ 'Restart VDR' ]

View File

@@ -4,6 +4,5 @@
- name: apt | install vdr-plugin-pvr350 if connected
apt:
name: vdr-plugin-pvr350
when:
- "0070:4000" in pci
when: '"0070:4000" in pci'
notify: [ 'Restart VDR' ]

View File

@@ -5,11 +5,11 @@
action: satip_facts
- debug:
var: satip_detected
var: satip_devices
verbosity: 1
- name: apt | install vdr-plugin-satip if a Sat>IP server has been detected
apt:
name: vdr-plugin-satip
when: satip_detected
when: satip_devices
notify: [ 'Restart VDR' ]

View File

@@ -4,6 +4,5 @@
- name: apt | install vdr-plugin-targavfd if connected
apt:
name: vdr-plugin-targavfd
when:
- "19c2:6a11" in usb
when: '"19c2:6a11" in usb'
notify: [ 'Restart VDR' ]