|
|
@@ -57,6 +57,7 @@ |
|
|
|
owner: mpd |
|
|
|
group: mpd |
|
|
|
mode: '0755' |
|
|
|
loop: "{{ range(1,count|int + 1) }}" |
|
|
|
- name: mpdf playlist directory |
|
|
|
file: |
|
|
|
path: "/var/lib/mpd {{ item }}/playlist" |
|
|
@@ -64,6 +65,7 @@ |
|
|
|
owner: mpd |
|
|
|
group: mpd |
|
|
|
mode: '0755' |
|
|
|
loop: "{{ range(1,count|int + 1) }}" |
|
|
|
- name: mpdf music directory |
|
|
|
file: |
|
|
|
path: "/var/lib/mpd {{ item }}/music" |
|
|
@@ -71,6 +73,7 @@ |
|
|
|
owner: mpd |
|
|
|
group: mpd |
|
|
|
mode: '0755' |
|
|
|
loop: "{{ range(1,count|int + 1) }}" |
|
|
|
- name: setup service on hosts |
|
|
|
template: |
|
|
|
src: mpdf.service.j2 |
|
|
@@ -79,7 +82,6 @@ |
|
|
|
owner: root |
|
|
|
group: root |
|
|
|
loop: "{{ range(1,count|int + 1) }}" |
|
|
|
|
|
|
|
- name: mpd service start |
|
|
|
systemd: |
|
|
|
name: "mpdf{{ item }}" |
|
|
|