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.3 KiB

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