Ansible repo for digital ocean projects
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

2 роки тому
2 роки тому
2 роки тому
2 роки тому
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. port_start: 6600
  16. port: "{{ port_start + item }}"
  17. log_level:
  18. gapless_mp3_playback: yes
  19. save_absolute_paths_in_playlists: yes
  20. metadata_to_use: artist,album,title,track,name,genre,date,composer,performer,disc
  21. auto_update: no
  22. auto_update_depth: 3
  23. follow_outside_symlinks: no
  24. follow_inside_symlinks: no
  25. zeroconf_enabled: no
  26. zeroconf_name: mpd
  27. default_permissions: red,add,control,admin
  28. stream: music
  29. stream_port: 6700
  30. stream_bind_address: any
  31. mixer_type: disabled
  32. replaygain: album
  33. replaygain_preamp: 0
  34. volume_normalization: no
  35. audio_buffer_size: 2048
  36. buffer_before_play: 1%
  37. tasks:
  38. - name: Install mpdf on hosts
  39. apt:
  40. name: mpd
  41. state: present
  42. - name: setup config on hosts
  43. template:
  44. src: mpdf.conf.j2
  45. dest: /etc/mpdf{{ item }}.conf
  46. owner: root
  47. group: root
  48. notify:
  49. - restart mpd
  50. loop: "{{ range(1,count|int + 1) }}"