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
|
||||
|
||||
- name: create empty list for dvbsky device firmware files
|
||||
set_fact:
|
||||
dvbsky_firmware_files: []
|
||||
|
||||
- name: add firmware for DVBSky S952 V3 to variable dvbsky_firmware_files if a card has been detected
|
||||
- name: determine needed firmware files by device ids
|
||||
block:
|
||||
- name: add firmware for DVBSky S952 V3 to variable dvbsky_firmware_files if a card has been detected
|
||||
set_fact:
|
||||
dvbsky_firmware_files: dvbsky_firmware_files + [ 'dvb-demod-m88rs6000.fw']
|
||||
when:
|
||||
- '"1ade:3038" in pci'
|
||||
- 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
|
||||
block:
|
||||
|
Loading…
Reference in New Issue
Block a user