From 4f94574d2ab05501e1d7220f5ca773ec78646f41 Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Tue, 22 Nov 2022 14:44:30 +0100 Subject: [PATCH] :hammer: Copy wiringpi-latest.deb from local repository --- host-platon.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/host-platon.yml b/host-platon.yml index f911e93..2d6892b 100644 --- a/host-platon.yml +++ b/host-platon.yml @@ -128,21 +128,23 @@ user: "{{ gatekeeper_user }}" special_time: reboot - - name: Download wiringPi library + - name: Copy wiringPi library deb # WiringPi needs to be installed, but that library seems to be - # obsolete. We download something and hope it works... - ansible.builtin.get_url: - url: https://project-downloads.drogon.net/wiringpi-latest.deb + # obsolete. Download seems to be obsolete, too, so we keep it in + # the Ansible repo for now. + ansible.builtin.copy: + src: files/wiringpi-latest.deb dest: "/home/{{ gatekeeper_user }}/wiringpi-latest.deb" + owner: "{{ gatekeeper_user }}" + group: "{{ gatekeeper_user }}" mode: "0644" - force: no - register: wiringPi_download + register: wiringPi_copy - name: Install wiringPi library # noqa 503 ansible.builtin.apt: state: present deb: "/home/{{ gatekeeper_user }}/wiringpi-latest.deb" - when: wiringPi_download.changed + when: wiringPi_copy.changed ### Rollladensteuerung