Match mpd systemd socket with configuration port
This commit is contained in:
parent
e9619c8475
commit
0499b896e1
3 changed files with 20 additions and 1 deletions
|
|
@ -19,6 +19,12 @@
|
|||
owner: 'root',
|
||||
group: 'root',
|
||||
}
|
||||
- {
|
||||
path: '/etc/systemd/system/mpd.socket.d',
|
||||
mode: 755,
|
||||
owner: 'root',
|
||||
group: 'root',
|
||||
}
|
||||
notify: restart mpd service
|
||||
|
||||
- name: copy mpd templates
|
||||
|
|
@ -31,12 +37,19 @@
|
|||
group: '{{ item.group }}'
|
||||
loop:
|
||||
- {
|
||||
src: 'templates/systemd/mpd.j2',
|
||||
src: 'templates/systemd/mpd/service.j2',
|
||||
dest: '/etc/systemd/system/mpd.service.d/override.conf',
|
||||
mode: 755,
|
||||
owner: 'root',
|
||||
group: 'root',
|
||||
}
|
||||
- {
|
||||
src: 'templates/systemd/mpd/socket.j2',
|
||||
dest: '/etc/systemd/system/mpd.socket.d/override.conf',
|
||||
mode: 755,
|
||||
owner: 'root',
|
||||
group: 'root',
|
||||
}
|
||||
- {
|
||||
src: 'templates/mpd.j2',
|
||||
dest: '{{ ansible_env.HOME }}/.config/mpd/mpd.conf',
|
||||
|
|
|
|||
6
templates/systemd/mpd/socket.j2
Normal file
6
templates/systemd/mpd/socket.j2
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
[Socket]
|
||||
# should match configuration port
|
||||
ListenStream=
|
||||
ListenStream={{ mpd_port }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue