From ea2dde451a758a6443c25a8800c727f213d6716f Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Sat, 23 Jul 2022 18:02:05 +0200 Subject: [PATCH] Install the wiringPi library This library is very hard to get ... --- platon.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/platon.yml b/platon.yml index 2b5b484..83fc9d9 100644 --- a/platon.yml +++ b/platon.yml @@ -81,6 +81,18 @@ - unstuck.sh - sesame-open.sh + - name: Download wiringPi library # WiringPi needs to be installed, but that library seems to be - # obsolete, so not automating. - # Follow the instructions on http://wiringpi.com/download-and-install/ + # obsolete. We download something and hope it works... + ansible.builtin.get_url: + url: https://project-downloads.drogon.net/wiringpi-latest.deb + dest: "/home/{{ gatekeeper_user }}/wiringpi-latest.deb" + mode: "0644" + force: no + register: wiringPi_download + + - name: Install wiringPi library + ansible.builtin.apt: + state: present + deb: "/home/{{ gatekeeper_user }}/wiringpi-latest.deb" + when: wiringPi_download.changed