updates raspis to new os based on bookworm

This commit is contained in:
Martin Bauer
2024-02-19 08:10:58 +01:00
parent 7776095180
commit 7501ef18a4
25 changed files with 359 additions and 74 deletions

View File

@@ -1,43 +1,16 @@
---
# Lirc needs a custom build on Raspian Buster, more details here:
# https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=235256
# https://gist.github.com/billpatrianakos/cb72e984d4730043fe79cbe5fc8f7941
- name: Create lirc config dir
file: path=/etc/lirc state=directory
- name: Install lirc
apt:
name: lirc
- name: Install config file lirc_options.conf
copy: src=lirc_options.conf dest=/etc/lirc/lirc_options.conf
- name: Install config file lircd.conf
copy: src=lircd.conf dest=/etc/lirc/lircd.conf
- name: Install remote file
copy: src=hauppauge.conf dest=/etc/lirc/hauppauge.conf
- name: create temporary directory
tempfile:
state: directory
suffix: temp
register: tempdir
- name: Copy over lirc customly compiled lirc packages
copy:
src: debs/
dest: "{{ tempdir.path }}"
when: tempdir.path is defined
- name: Install custom lirc package 1
apt:
force: True
deb: "{{ tempdir.path }}/liblirc0_0.10.1-5.2_armhf.deb"
when: tempdir.path is defined
- name: Install custom lirc package 2
apt:
force: True
deb: "{{ tempdir.path }}/liblircclient0_0.10.1-5.2_armhf.deb"
when: tempdir.path is defined
- name: Install custom lirc package 3
apt:
force: True
deb: "{{ tempdir.path }}/lirc_0.10.1-5.2_armhf.deb"
when: tempdir.path is defined
- name: Activate overlay in boot config
lineinfile:
path: /boot/config.txt
path: /boot/firmware/config.txt
regexp: "^#?dtoverlay=gpio-ir"
line: "dtoverlay=gpio-ir,gpio_pin=17"
register: boot_overlay