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.

62 lignes
1.5 KiB

  1. - hosts: mpdb, mpdf
  2. gather_facts: true
  3. vars:
  4. path: /var/lib/mpd
  5. playlist_directory: /playlist/
  6. db_file: tag_cache
  7. log_dir: /var/log/
  8. log_file: mpd.log
  9. pid_file: pid
  10. state_file: state
  11. sticker_file: sticker
  12. user: mpd
  13. group: nogroup
  14. bind_to_address: any
  15. bind_address: any
  16. mpdport: 6600
  17. log_level: default
  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: read,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 davfs on hosts
  39. apt:
  40. name: davfs2
  41. state: latest
  42. - name: setup service davfs on host
  43. template:
  44. src: davfs.service.j2
  45. dest: "/usr/lib/systemd/system/davfs.service"
  46. mode: 0644
  47. owner: root
  48. group: root
  49. - name: davfs service start
  50. systemd:
  51. name: "davfs"
  52. state: started
  53. enabled: yes
  54. masked: no
  55. daemon_reload: yes
  56. handlers:
  57. - name: Restart DAVFS
  58. ansible.builtin.service:
  59. name: davfs
  60. state: restarted