Skip to content

mmoole/ansible-role-shairport-sync

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role: shairport-sync

An Ansible role that installs shairport-sync on Ubuntu/Debian.

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

You have the choice to either customize the whole config as a string containing your shairport-sync configuration:

shairportsync_config: ''

... or you can just use some variables from the configuration:

log_verbosity: 0
speakername: "{{ inventory_hostname }} AirSound"
output_backend: alsa
ignore_volume_control: "yes"
alac_decoder: apple
alsa_device: sysdefault

If using sysdefault als ALSA device there might be no output from shairport-sync if at the same time another app is using playback. But as soon as the other app stops, playback from shairport-sync should sound.

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: servers
  roles:
    - role: shairport-sync
      shairportsync_config: |
        general = {
          name = "Maestro";
          volume_range_db = 30;
        };

License

ISC

Author Information

Many thanks to:

About

Ansible role for shairport-sync

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%