Merge pull request '🚑 Get wiringpi package from local repository' (!123) from wiringpi into master
Reviewed-on: https://gitea.n39.eu/Netz39_Admin/netz39-infra-ansible/pulls/123 Reviewed-by: dkdent <dkdent@netz39.de> Reviewed-by: Alexander Dahl <alex@netz39.de>
This commit is contained in:
commit
fc57052e79
2 changed files with 9 additions and 7 deletions
BIN
files/wiringpi-latest.deb
Normal file
BIN
files/wiringpi-latest.deb
Normal file
Binary file not shown.
|
@ -128,21 +128,23 @@
|
||||||
user: "{{ gatekeeper_user }}"
|
user: "{{ gatekeeper_user }}"
|
||||||
special_time: reboot
|
special_time: reboot
|
||||||
|
|
||||||
- name: Download wiringPi library
|
- name: Copy wiringPi library deb
|
||||||
# WiringPi needs to be installed, but that library seems to be
|
# WiringPi needs to be installed, but that library seems to be
|
||||||
# obsolete. We download something and hope it works...
|
# obsolete. Download seems to be obsolete, too, so we keep it in
|
||||||
ansible.builtin.get_url:
|
# the Ansible repo for now.
|
||||||
url: https://project-downloads.drogon.net/wiringpi-latest.deb
|
ansible.builtin.copy:
|
||||||
|
src: files/wiringpi-latest.deb
|
||||||
dest: "/home/{{ gatekeeper_user }}/wiringpi-latest.deb"
|
dest: "/home/{{ gatekeeper_user }}/wiringpi-latest.deb"
|
||||||
|
owner: "{{ gatekeeper_user }}"
|
||||||
|
group: "{{ gatekeeper_user }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
force: no
|
register: wiringPi_copy
|
||||||
register: wiringPi_download
|
|
||||||
|
|
||||||
- name: Install wiringPi library # noqa 503
|
- name: Install wiringPi library # noqa 503
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
state: present
|
state: present
|
||||||
deb: "/home/{{ gatekeeper_user }}/wiringpi-latest.deb"
|
deb: "/home/{{ gatekeeper_user }}/wiringpi-latest.deb"
|
||||||
when: wiringPi_download.changed
|
when: wiringPi_copy.changed
|
||||||
|
|
||||||
|
|
||||||
### Rollladensteuerung
|
### Rollladensteuerung
|
||||||
|
|
Loading…
Reference in a new issue