From cebb9164770af72f459d89603818480fb2ccd856 Mon Sep 17 00:00:00 2001 From: LuigiDC Date: Thu, 16 Nov 2017 22:21:04 +0100 Subject: [PATCH] Required folder action for firmware added with documentation --- roles/autoinstall-dvbsky-S952/tasks/main.yml | 27 ++++++++++++++------ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/roles/autoinstall-dvbsky-S952/tasks/main.yml b/roles/autoinstall-dvbsky-S952/tasks/main.yml index 79e1082..833f1b0 100644 --- a/roles/autoinstall-dvbsky-S952/tasks/main.yml +++ b/roles/autoinstall-dvbsky-S952/tasks/main.yml @@ -1,11 +1,22 @@ --- # file roles/autoinstall-DVBSky-S952/tasks/main.yml - - name: Download firmware of DVBSky-S952 if detected to /lib/firmware - unarchive: - src: http://www.dvbsky.net/download/linux/dvbsky-firmware.tar.gz - dest: /tmp/firmware - remote_src: yes - when: - - '"1ade:3038" in pci' - - ansible_distribution_version >= '15.04' #driver only included since Kernel 3.19 \ No newline at end of file +- name: Download firmware of DVBSky-S952 if detected to /lib/firmware and extract them + unarchive: + src: http://www.dvbsky.net/download/linux/dvbsky-firmware.tar.gz + dest: /tmp/ + remote_src: yes + when: + - '"1ade:3038" in pci' + - ansible_distribution_version >= '15.04' #driver only included since Kernel 3.19 + +- name: Copy the required firmware to right folder + copy: + src: /tmp/dvbsky-firmware/dvb-demod-m88rs6000.fw + dest: /lib/firmware/ + owner: root + group: root + mode: 0644 + +- name: Remove unnecessary files from download + file: path=/tmp/dvbsky-firmware state=absent \ No newline at end of file