|
@@ -54,24 +54,24 @@ |
|
|
file: |
|
|
file: |
|
|
path: "/var/lib/mpd{{ item }}" |
|
|
path: "/var/lib/mpd{{ item }}" |
|
|
state: directory |
|
|
state: directory |
|
|
owner: mpd |
|
|
|
|
|
group: mpd |
|
|
|
|
|
|
|
|
owner: root |
|
|
|
|
|
group: root |
|
|
mode: '0755' |
|
|
mode: '0755' |
|
|
loop: "{{ range(1,count|int + 1) }}" |
|
|
loop: "{{ range(1,count|int + 1) }}" |
|
|
- name: mpdf playlist directory |
|
|
- name: mpdf playlist directory |
|
|
file: |
|
|
file: |
|
|
path: "/var/lib/mpd{{ item }}/playlist" |
|
|
path: "/var/lib/mpd{{ item }}/playlist" |
|
|
state: directory |
|
|
state: directory |
|
|
owner: mpd |
|
|
|
|
|
group: mpd |
|
|
|
|
|
|
|
|
owner: root |
|
|
|
|
|
group: root |
|
|
mode: '0755' |
|
|
mode: '0755' |
|
|
loop: "{{ range(1,count|int + 1) }}" |
|
|
loop: "{{ range(1,count|int + 1) }}" |
|
|
- name: mpdf music directory |
|
|
- name: mpdf music directory |
|
|
file: |
|
|
file: |
|
|
path: "/var/lib/mpd{{ item }}/music" |
|
|
path: "/var/lib/mpd{{ item }}/music" |
|
|
state: directory |
|
|
state: directory |
|
|
owner: mpd |
|
|
|
|
|
group: mpd |
|
|
|
|
|
|
|
|
owner: root |
|
|
|
|
|
group: root |
|
|
mode: '0755' |
|
|
mode: '0755' |
|
|
loop: "{{ range(1,count|int + 1) }}" |
|
|
loop: "{{ range(1,count|int + 1) }}" |
|
|
- name: setup service on hosts |
|
|
- name: setup service on hosts |
|
|