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 <noreply@anthropic.com>
39 lines
645 B
YAML
39 lines
645 B
YAML
---
|
|
- name: Server
|
|
hosts: server
|
|
roles:
|
|
- bluetooth_monitor
|
|
|
|
- name: MusicDolphin oben
|
|
hosts: musicdolphin
|
|
roles:
|
|
- bluetooth_monitor
|
|
|
|
- name: Kitchen pi
|
|
hosts: kitchenpi
|
|
roles:
|
|
- pi_disable_onboard_bluetooth
|
|
- bluetooth_monitor
|
|
|
|
- name: Bedroom pi
|
|
hosts: bedroompi
|
|
roles:
|
|
- pi_disable_onboard_bluetooth
|
|
- bluetooth_monitor
|
|
|
|
- name: Musicmouse
|
|
hosts: musicmouse
|
|
roles:
|
|
- pi_standard_setup
|
|
- pi_hifiberry_amp
|
|
- pi_musicmouse
|
|
- pi_squeezelite_custom
|
|
- pi_shairport
|
|
- pi_lirc
|
|
- bluetooth_monitor
|
|
|
|
- name: Home Assistant
|
|
hosts: homeassistant
|
|
roles:
|
|
- bluetooth_monitor
|