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