2022-09-26 10:34:16 +02:00
# laurivan.navidrome
2022-09-26 07:52:13 +02:00
2022-09-26 10:34:16 +02:00
Install navidrome and optionally bonob in docker.
2022-09-26 07:52:13 +02:00
2022-09-26 10:34:16 +02:00
## Requirements
2022-09-26 07:52:13 +02:00
2022-09-26 10:34:16 +02:00
You need a machine with Docker installed.
2022-09-26 07:52:13 +02:00
2022-09-26 10:34:16 +02:00
## Role Variables
2022-09-26 07:52:13 +02:00
2022-09-26 10:34:16 +02:00
All variables are listed below (see also `defaults/main.yml` ).
2022-09-26 07:52:13 +02:00
2022-09-26 10:34:16 +02:00
### Navidrome
You can (and should) specify the version of the navidrome image:
```yaml
2023-01-22 19:36:10 +01:00
navidrome.image_version: 'latest'
2022-09-26 10:34:16 +02:00
```
Navidrome needs a place to store its configuration and another to pick up music from:
```yaml
2023-01-22 19:36:10 +01:00
navidrome.config_volume: '/mnt/config-local/navidrome'
navidrome.music_volume: '/mnt/music'
2022-09-26 10:34:16 +02:00
```
If you have multiple folders with music, you should create a parent and build symbolic links to them.
The web interface is available at the following port:
```yaml
2023-01-22 19:36:10 +01:00
navidrome.host_port: 48533
2022-09-26 10:34:16 +02:00
```
### Bonob
2023-01-22 19:36:10 +01:00
If you have e.g. a Sonos system in the house, you may install also Bonob by setting `bonob.enabled` to `true` . the default is:
2022-09-26 10:34:16 +02:00
```yml
2023-01-22 19:36:10 +01:00
bonob.enabled: false
2022-09-26 10:34:16 +02:00
```
You can also specify the bonob image version and the port at which is available:
```yml
2023-01-22 19:36:10 +01:00
bonob.image_version: 'latest'
bonob.host_port: 48534
2022-09-26 10:34:16 +02:00
```
You can change the colors of the bonob icon displayed:
```yml
2023-01-22 19:36:10 +01:00
bonob.icon_color: "beige"
bonob.icon_background: "red"
2022-09-26 10:34:16 +02:00
```
#### Sonos
The sonos-related variables are:
```yml
2023-01-22 19:36:10 +01:00
bonob.sonos.auto_register: 'true'
bonob.sonos.device_discovery: 'true'
bonob.sonos.seed_host:
bonob.sonos.service_id: "246"
2022-09-26 10:34:16 +02:00
```
If you try sonos autodiscovery and it doesn't work, please:
1. Find the IP of one of the Sonos devices
2023-01-22 19:36:10 +01:00
2. Set `bonob.sonos.seed_host` to that IP
2022-09-26 10:34:16 +02:00
3. Replay the role
You can also add custom clients for streaming:
```yaml
2023-01-22 19:36:10 +01:00
bonob.subsonic.custom_clients: 'audio/flac'
2022-09-26 10:34:16 +02:00
```
For more details, please see the [Bonob documentation ](https://github.com/simojenki/bonob ).
### Generic
You will need to specify a timezone:
```yml
timezone: 'Europe/Brussels'
```
Otherwise, Bonob will point to *Australia/Melbourne* , which may not be the same as Navidrome.
## Dependencies
2022-09-26 07:52:13 +02:00
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
2022-09-26 10:34:16 +02:00
## Example Playbook
2022-09-26 07:52:13 +02:00
2022-09-26 12:19:16 +02:00
```yml
- name: Example playbook
hosts: services
vars:
2023-01-22 19:36:10 +01:00
bonob.enabled: "true"
2022-09-26 12:19:16 +02:00
roles:
- 'laurivan.navidrome'
2022-09-26 07:52:13 +02:00
2022-09-26 12:19:16 +02:00
```
2022-09-26 07:52:13 +02:00
2022-09-26 10:34:16 +02:00
## License
2022-09-26 07:52:13 +02:00
2022-09-26 10:34:16 +02:00
MIT
2022-09-26 07:52:13 +02:00
2022-09-26 10:34:16 +02:00
## Author Information
2022-09-26 07:52:13 +02:00
2022-09-26 10:34:16 +02:00
This role was created in 2022 by [Laur Ivan ](https://www.laurivan.com ).