Ansible repo for digital ocean projects
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

56 satır
1.4 KiB

  1. - hosts: all
  2. gather_facts: false
  3. vars:
  4. #we need to loop over the /var/lib/mpd{{ count }} directory for the files/folders below. we need to loop over the stream ports as well
  5. count: 5
  6. playlist_directory: playlists
  7. db_file: tag_cache
  8. log_file: mpd.log
  9. pid_file: pid
  10. state_file: state
  11. sticker_file: sticker.sql
  12. user: mpd
  13. group: nogroup
  14. bind_to_address: any
  15. bind_address: any
  16. port_start: 6600
  17. port: "{{ port_start + item }}"
  18. log_level:
  19. gapless_mp3_playback: yes
  20. save_absolute_paths_in_playlists: yes
  21. metadata_to_use: artist,album,title,track,name,genre,date,composer,performer,disc
  22. auto_update: no
  23. auto_update_depth: 3
  24. follow_outside_symlinks: no
  25. follow_inside_symlinks: no
  26. zeroconf_enabled: no
  27. zeroconf_name: mpd
  28. default_permissions: red,add,control,admin
  29. stream: music
  30. stream_port: 6700
  31. stream_bind_address: any
  32. mixer_type: disabled
  33. replaygain: album
  34. replaygain_preamp: 0
  35. volume_normalization: no
  36. audio_buffer_size: 2048
  37. buffer_before_play: 1%
  38. tasks:
  39. - name: Install mpdf on hosts
  40. apt:
  41. name: mpd
  42. state: present
  43. - name: setup config on hosts
  44. template:
  45. src: mpdf.conf.j2
  46. dest: /etc/mpdf{{ item }}.conf
  47. owner: root
  48. group: root
  49. notify:
  50. - restart mpd
  51. loop: "{{ range(1,count|int + 1) }}"