项目作者: bodsch

项目描述 :
ansible role for music player daemon (mpd)
高级语言: HTML
项目地址: git://github.com/bodsch/ansible-mpd.git
创建时间: 2020-12-05T12:18:43Z
项目社区:https://github.com/bodsch/ansible-mpd

开源协议:Apache License 2.0

下载


Ansible Role: mpd

Ansible role to setup mpd (Music Player Daemon)

The command line interface mpc is only available on Debian based systems, sorry.

GitHub Workflow Status
GitHub issues
GitHub release (latest by date)
Ansible Quality Score

Requirements & Dependencies

Ansible Collections

  1. ansible-galaxy collection install bodsch.core

or

  1. ansible-galaxy collection install --requirements-file collections.yml

usage

  1. mpd_outputs:
  2. - name: "Null Output"
  3. type: "null"
  4. mpd_inputs:
  5. curl:
  6. verify_peer: "yes"
  7. verify_host: "yes"
  8. # proxy: "proxy.isp.com:8080"
  9. # proxy_user: "user"
  10. # proxy_password: "password"
  11. mpd_database: {}
  12. # plugin: "proxy"
  13. # host: "other.mpd.host"
  14. # port: "6600"
  15. mpd_name: Mediabox Player
  16. mpd_restore_paused: true
  17. mpd_auto_update: true
  18. mpd_follow_inside_symlinks: true
  19. mpd_follow_outside_symlinks: false
  20. mpd_zeroconf:
  21. enabled: true
  22. name: "Music Player"
  23. mpd_music_directory: /var/lib/mpd/music
  24. mpd_playlist_directory: /var/lib/mpd/playlists
  25. mpd_db_file: /var/lib/mpd/tag_cache
  26. mpd_sticker_file: /var/lib/mpd/sticker.sql
  27. mpd_state_file: /var/lib/mpd/state
  28. mpd_pid_file: /run/mpd/pid
  29. mpd_log_file: /var/log/mpd/mpd.log
  30. # Available setting arguments are
  31. # "default", "secure" or "verbose"
  32. mpd_log_level: default
  33. mpd_user: mpd
  34. mpd_bind_to_address: '0.0.0.0'
  35. mpd_port: 6600
  36. mpd_radiostations: []
  37. mpd_alarm_clock: {}

Outputs

  1. mpd_outputs:
  2. - name: "Null Output"
  3. type: "null"
  4. - name: "Pulse Output"
  5. type: "pulse"
  6. - name: "Alsa Output"
  7. type: "alsa"
  8. device: "hw:0,0"
  9. mixer_type: "hardware" # optional
  10. mixer_device: "default" # optional
  11. mixer_control: "PCM" # optional
  12. mixer_index: "0" # optional

Inputs

  1. mpd_inputs:
  2. curl:
  3. enabled: true
  4. verify_peer: "yes"
  5. verify_host: "yes"
  6. # proxy: "proxy.isp.com:8080"
  7. # proxy_user: "user"
  8. # proxy_password: "password"
  9. qobuz:
  10. enabled: false
  11. app_id: "ID"
  12. # app_secret: "SECRET"
  13. # username: "USERNAME"
  14. # password: "PASSWORD"
  15. # format_id: "N"
  16. tidal:
  17. enabled: false
  18. token: "TOKEN"
  19. # username: "USERNAME"
  20. # password: "PASSWORD"
  21. # audioquality: "Q"

Radiostations

The radio stations can be configured as individual stations or as a group:

  1. mpd_radiostations:
  2. - name: Gothic
  3. stations:
  4. - name: Radio Dunkle Welle
  5. url: http://164.132.13.80:5090/stream
  6. - name: Mera Luna FM
  7. url: http://meralunafm.radionetz.de:8000/meralunafm.mp3
  8. - name: Studio Brüssel
  9. url: http://icecast.vrtcdn.be/stubru-high.mp3

alarm clock

  1. mpd_used_cron_daemon: "{{ 'cron' if ansible_os_family | lower == 'debian' else 'cronie' }}"
  2. mpd_alarm_clock:
  3. enable: true
  4. radiostation: 'Studio Brüssel'
  5. cron_start:
  6. enable: true
  7. minute: 55
  8. hour: 5
  9. weekday: 1-5
  10. cron_stop:
  11. enable: true
  12. minute: 58
  13. hour: 6

Author

  • Bodo Schulz

License

Apache

FREE SOFTWARE, HELL YEAH!