Ansible repo for digital ocean projects
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

mpdf.yaml 1.5 KiB

il y a 2 ans
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. path: /var/lib
  7. service_name: "{{ mpd + item }}"
  8. playlist_directory: >- "{{ "%s/%s/playlist/" % (path, service_name) }}"
  9. db_file: tag_cache
  10. log_file: mpd.log
  11. pid_file: pid
  12. state_file: state
  13. sticker_file: sticker.sql
  14. user: mpd
  15. group: nogroup
  16. bind_to_address: any
  17. bind_address: any
  18. port_start: 6600
  19. port: "{{ port_start + item }}"
  20. log_level:
  21. gapless_mp3_playback: yes
  22. save_absolute_paths_in_playlists: yes
  23. metadata_to_use: artist,album,title,track,name,genre,date,composer,performer,disc
  24. auto_update: no
  25. auto_update_depth: 3
  26. follow_outside_symlinks: no
  27. follow_inside_symlinks: no
  28. zeroconf_enabled: no
  29. zeroconf_name: mpd
  30. default_permissions: red,add,control,admin
  31. stream: music
  32. stream_port: 6700
  33. stream_bind_address: any
  34. mixer_type: disabled
  35. replaygain: album
  36. replaygain_preamp: 0
  37. volume_normalization: no
  38. audio_buffer_size: 2048
  39. buffer_before_play: 1%
  40. tasks:
  41. - name: Install mpdf on hosts
  42. apt:
  43. name: mpd
  44. state: present
  45. - name: setup config on hosts
  46. template:
  47. src: mpdf.conf.j2
  48. dest: /etc/mpdf{{ item }}.conf
  49. mode: 0644
  50. owner: root
  51. group: root
  52. notify:
  53. - restart mpd
  54. loop: "{{ range(1,count|int + 1) }}"