- pi_hifiberry_amp: the boot config lives at /boot/firmware/config.txt. - pi_sysdweb: install python3-dbus and python3-systemd from apt, which trixie ships at the versions sysdweb needs; bookworm gets the headers pip needs to build dbus-python 1.4 itself. - pi_squeezeserver: trixie images have no iptables, and so cannot have the port 80 redirect that absent.yml removes - skip that step there instead of failing. - pi_modern_shell_env, pi_slint_frontend: read facts through `ansible_facts` rather than the deprecated injected `ansible_*` variables. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
26 lines
1.1 KiB
YAML
26 lines
1.1 KiB
YAML
---
|
|
- name: Deactivate normal audio
|
|
ansible.builtin.lineinfile:
|
|
path: /boot/firmware/config.txt
|
|
regexp: "^#?dtparam=audio=on"
|
|
line: "#dtparam=audio=on"
|
|
notify: Reboot after HiFiBerry boot config change
|
|
- name: Activate Hifiberry
|
|
ansible.builtin.lineinfile:
|
|
path: /boot/firmware/config.txt
|
|
# Any hifiberry overlay, not just the one this used to set: otherwise changing
|
|
# hifiberry_overlay appends a second dtoverlay line and leaves the old one active.
|
|
regexp: "^#?dtoverlay=hifiberry-"
|
|
line: "dtoverlay={{ hifiberry_overlay }}"
|
|
notify: Reboot after HiFiBerry boot config change
|
|
- name: Lift the Pi 5's USB current cap when the HiFiBerry board powers it
|
|
# A Pi 5 fed over the GPIO header has no USB-C power negotiation, so it assumes a
|
|
# weak supply and limits USB ports to 600mA. Unknown to a Pi 4, which ignores it.
|
|
ansible.builtin.lineinfile:
|
|
path: /boot/firmware/config.txt
|
|
regexp: "^#?usb_max_current_enable="
|
|
line: "usb_max_current_enable=1"
|
|
insertafter: EOF
|
|
when: hifiberry_powers_pi
|
|
notify: Reboot after HiFiBerry boot config change
|