Files
ansible/roles/pi_standard_setup
Martin Bauer 874a81f664 Give each role's reboot handler its own name
pi_standard_setup, pi_hifiberry_amp and pi_disable_onboard_bluetooth each defined a
handler called "Reboot". Handler names are play-global, so a notify ran only the last
one defined - pi_disable_onboard_bluetooth's - and with that role's `when:`. On every
host where onboard Bluetooth stays on, the handler was skipped and nothing that asked
for a reboot ever got one: not a changed dtoverlay, not a hostname change, not the Pi 5
kernel. Seen on musicdolphin, where a new HiFiBerry overlay sat unapplied in
config.txt after a clean run.

Each role now notifies a handler only it defines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 21:21:37 +02:00
..
2026-09-19 16:28:00 +02:00

pi_standard_setup

Baseline provisioning applied to every Pi: apt update/upgrade, detects the Pi model, adds a root SSH key, disables the SSH locale-forwarding warning, optionally configures wifi and the hostname, and rotates the default pi/raspberry credentials via the keepass lookup plugin.

Key vars: pi_standard_setup_wifi_ssid, pi_standard_setup_new_hostname, pi_standard_setup_timezone, pi_standard_setup_wifi_country, ansible_ssh_pass (the OS-default password, used only to reach a freshly-flashed Pi for the first time before its password is rotated)