move variable dvbsky_firmware_files to role default
This commit is contained in:
parent
636ff5722a
commit
51226ff994
3
roles/autoinstall-dvbsky-firmware/defaults/main.yml
Normal file
3
roles/autoinstall-dvbsky-firmware/defaults/main.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
# file roles/autoinstall-dvbsky-firmware
|
||||||
|
dvbsky_firmware_files: []
|
@ -1,16 +1,16 @@
|
|||||||
---
|
---
|
||||||
# file roles/autoinstall-dvbsky-firmware/tasks/main.yml
|
# file roles/autoinstall-dvbsky-firmware/tasks/main.yml
|
||||||
|
|
||||||
- name: create empty list for dvbsky device firmware files
|
- name: determine needed firmware files by device ids
|
||||||
set_fact:
|
block:
|
||||||
dvbsky_firmware_files: []
|
- name: add firmware for DVBSky S952 V3 to variable dvbsky_firmware_files if a card has been detected
|
||||||
|
|
||||||
- name: add firmware for DVBSky S952 V3 to variable dvbsky_firmware_files if a card has been detected
|
|
||||||
set_fact:
|
set_fact:
|
||||||
dvbsky_firmware_files: dvbsky_firmware_files + [ 'dvb-demod-m88rs6000.fw']
|
dvbsky_firmware_files: dvbsky_firmware_files + [ 'dvb-demod-m88rs6000.fw']
|
||||||
when:
|
when:
|
||||||
- '"1ade:3038" in pci'
|
- '"1ade:3038" in pci'
|
||||||
- ansible_distribution_version >= '15.04' #driver only included since Kernel 3.19
|
- ansible_distribution_version >= '15.04' #driver only included since Kernel 3.19
|
||||||
|
when:
|
||||||
|
- not dvbsky_firmware_files
|
||||||
|
|
||||||
- name: Download firmware for DVBSky cards and copy required files to /lib/firmware
|
- name: Download firmware for DVBSky cards and copy required files to /lib/firmware
|
||||||
block:
|
block:
|
||||||
|
Loading…
Reference in New Issue
Block a user