Skip to content

narfman0/ansible-mopidy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-mopidy

https://travis-ci.org/narfman0/ansible-mopidy.png?branch=master

Ansible role that installs Mopidy on Ubuntu/Debian. Thanks to Daniel White for the inspiration :)

Role Variables

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

A list of package manager extensions:

mopidy_packages:
  - mopidy-spotify

A list of pip extensions:

mopidy_pip:
  - mopidy-pandora

A list of additional options to configure. Each item requires the section, option and value properties to be defined. These are used by the ini_file module to configure /etc/mopidy/mopidy.conf:

mopidy_settings:
  - { section: 'spotify', option: 'username', value: '{{ spotify_username }}' }
  - { section: 'spotify', option: 'password', value: '{{ spotify_password }}' }
  - { section: 'pandora', option: 'username', value: '{{ pandora_username }}' }
  - { section: 'pandora', option: 'password', value: '{{ pandora_password }}' }
  ... <snip, please see defaults/main.yml file :)

Example

playbook.yml:

- hosts: mopidy-hosts
  roles:
    - role: mopidy

Testing

A vagrant file has been included for easy testing. To get a running mopidy:

vagrant up --provider virtualbox

License

Please see included LICENSE file for license specifics

Copyright 2017 Jon Robison

About

Ansible role that installs Mopidy on Ubuntu/Debian

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published