From 9c66b7f665226589bc539be8c11de5583d18c653 Mon Sep 17 00:00:00 2001 From: Martin Bauer Date: Sat, 19 Sep 2026 16:23:00 +0200 Subject: [PATCH] Rename musikserverwohnzimmeroben -> musicdolphin The Pi's OS hostname was changed first (raspi-config do_hostname + reboot), since no mediapi sets ansible_host and Ansible resolves these by hostname via mDNS/router DNS. Host now answers as musicdolphin.local at 192.168.178.100. The motd file must match the live OS hostname (pi_standard_setup reads it off the device), the host_vars filename and the pi_musicmouse config filename must match the inventory key. sensor_room_name/sensor_room_name_ascii stay WohnzimmerOben - they name the physical room for MQTT topics, not the host, and renaming them would orphan the Home Assistant history. Co-Authored-By: Claude Opus 5 --- README.md | 2 +- ...{musikserverwohnzimmeroben.yml => musicdolphin.yml} | 0 inventory.yml | 2 +- roles/pi_standard_setup/files/motd/musicdolphin | 8 ++++++++ .../files/motd/musikserverwohnzimmeroben | 10 ---------- scripts/networklogger/devices.md | 2 +- working.yml | 4 ++-- 7 files changed, 13 insertions(+), 15 deletions(-) rename host_vars/{musikserverwohnzimmeroben.yml => musicdolphin.yml} (100%) create mode 100644 roles/pi_standard_setup/files/motd/musicdolphin delete mode 100644 roles/pi_standard_setup/files/motd/musikserverwohnzimmeroben diff --git a/README.md b/README.md index f2cf65a..1b3ab61 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Pis (audio players, sensors, music mouse, etc.) plus one home server. parallel audio-player Pis) and their host-specific overrides. - `mediapis.yml`, `working.yml`, `server.yml`, `newrpi-provisioning.yml`, `octopisetup.yml` — top-level playbooks. `mediapis.yml` is the canonical - playbook for the `mediapis` group (`musikserverwohnzimmeroben`, `kitchenpi`, + playbook for the `mediapis` group (`musicdolphin`, `kitchenpi`, `bedroompi`, `musicmouse`); the others are narrower/ad-hoc runs kept around for specific hosts or one-off tasks. - `roles/` — one role per piece of functionality (audio backends, sensors, diff --git a/host_vars/musikserverwohnzimmeroben.yml b/host_vars/musicdolphin.yml similarity index 100% rename from host_vars/musikserverwohnzimmeroben.yml rename to host_vars/musicdolphin.yml diff --git a/inventory.yml b/inventory.yml index 1021d3b..12dea24 100644 --- a/inventory.yml +++ b/inventory.yml @@ -40,7 +40,7 @@ all: children: mediapis: hosts: - musikserverwohnzimmeroben: + musicdolphin: kitchenpi: bedroompi: musicmouse: diff --git a/roles/pi_standard_setup/files/motd/musicdolphin b/roles/pi_standard_setup/files/motd/musicdolphin new file mode 100644 index 0000000..c132de5 --- /dev/null +++ b/roles/pi_standard_setup/files/motd/musicdolphin @@ -0,0 +1,8 @@ +Music Dolphin + ,-._ + _.-' '--. + .' _ -`\_ + / .----.`_.'----' + ;/ ` + /_; + diff --git a/roles/pi_standard_setup/files/motd/musikserverwohnzimmeroben b/roles/pi_standard_setup/files/motd/musikserverwohnzimmeroben deleted file mode 100644 index 483a9b8..0000000 --- a/roles/pi_standard_setup/files/motd/musikserverwohnzimmeroben +++ /dev/null @@ -1,10 +0,0 @@ - - Musik Server Wohnzimmer oben - - |~~~~~~~~~~~~~~~| - |~~~~~~~~~~~~~~~| - | | - /~~\| /~~\| - \__/ \__/ - - \ No newline at end of file diff --git a/scripts/networklogger/devices.md b/scripts/networklogger/devices.md index 39cee43..4c5e3ac 100644 --- a/scripts/networklogger/devices.md +++ b/scripts/networklogger/devices.md @@ -24,7 +24,7 @@ Server: esszimmerradio - musikserverwohnzimmeroben + musicdolphin no diff --git a/working.yml b/working.yml index bed723e..88132a3 100644 --- a/working.yml +++ b/working.yml @@ -4,8 +4,8 @@ roles: - bluetooth_monitor -- name: Musikserver Wohnzimmer oben - hosts: musikserverwohnzimmeroben +- name: MusicDolphin oben + hosts: musicdolphin roles: - bluetooth_monitor