Feat(Choux): Move mpd to per-user configuration

This commit is contained in:
Bertrand Benjamin 2018-11-29 18:02:42 +01:00
parent 6bef213972
commit 0759e5c55a
3 changed files with 13 additions and 10 deletions

View File

@ -17,7 +17,7 @@ music_directory "{{ music_dir }}"
# playlist files not created by the server but only if they are in the MPD
# format. This setting defaults to playlist saving being disabled.
#
#playlist_directory "~/.mpd/playlists"
playlist_directory "~/.mpd/playlists"
#
# This setting sets the location of the MPD database. This file is used to
# load the database at server start up and store the database while the
@ -25,7 +25,7 @@ music_directory "{{ music_dir }}"
# MPD to accept files over ipc socket (using file:// protocol) or streaming
# files over an accepted protocol.
#
#db_file "~/.mpd/database"
db_file "~/.mpd/database"
#
# These settings are the locations for the daemon log files for the daemon.
# These logs are great for troubleshooting, depending on your log_level
@ -34,25 +34,25 @@ music_directory "{{ music_dir }}"
# The special value "syslog" makes MPD use the local syslog daemon. This
# setting defaults to logging to syslog.
#
#log_file "~/.mpd/log"
log_file "syslog"
#
# This setting sets the location of the file which stores the process ID
# for use of mpd --kill and some init scripts. This setting is disabled by
# default and the pid file will not be stored.
#
#pid_file "~/.mpd/pid"
pid_file "~/.mpd/pid"
#
# This setting sets the location of the file which contains information about
# most variables to get MPD back into the same general shape it was in before
# it was brought down. This setting is disabled by default and the server
# state will be reset on server start up.
#
#state_file "~/.mpd/state"
state_file "~/.mpd/state"
#
# The location of the sticker database. This is a database which
# manages dynamic information attached to songs.
#
#sticker_file "~/.mpd/sticker.sql"
sticker_file "~/.mpd/sticker.sql"
#
###############################################################################

View File

@ -13,8 +13,5 @@
name: mpd
enabled: yes
state: started
scope: user
- name: Copy mpd.conf
template:
src: files/mpd.conf
dest: /etc/mpd.conf

View File

@ -113,6 +113,12 @@
with_items: "{{ me }}"
when: not minimal and not server
- name: Copy mpd.conf
template:
src: files/mpd.conf
dest: /home/{{ item.username }}/.config/mpd/mpd.conf
dest: /etc/mpd.conf
- name: Creates .ssh
file:
path: /home/{{ item.username }}/.ssh/