|
|
@@ -57,6 +57,8 @@ |
|
|
|
mode: 0644 |
|
|
|
owner: root |
|
|
|
group: root |
|
|
|
notify: |
|
|
|
- Restart MPD |
|
|
|
loop: "{{ range(1,mpdcount|int + 1) }}" |
|
|
|
- name: mpdf var directory |
|
|
|
file: |
|
|
@@ -65,6 +67,8 @@ |
|
|
|
owner: root |
|
|
|
group: root |
|
|
|
mode: '0777' |
|
|
|
notify: |
|
|
|
- Restart MPD |
|
|
|
loop: "{{ range(1,mpdcount|int + 1) }}" |
|
|
|
- name: mpdf playlist directory |
|
|
|
file: |
|
|
@@ -73,6 +77,8 @@ |
|
|
|
owner: root |
|
|
|
group: root |
|
|
|
mode: '0755' |
|
|
|
notify: |
|
|
|
- Restart MPD |
|
|
|
loop: "{{ range(1,mpdcount|int + 1) }}" |
|
|
|
# - name: mpdf pid file |
|
|
|
# file: |
|
|
@@ -89,6 +95,8 @@ |
|
|
|
owner: root |
|
|
|
group: root |
|
|
|
mode: '0755' |
|
|
|
notify: |
|
|
|
- Restart MPD |
|
|
|
loop: "{{ range(1,mpdcount|int + 1) }}" |
|
|
|
- name: copy sticker.sql |
|
|
|
copy: |
|
|
@@ -97,6 +105,8 @@ |
|
|
|
owner: root |
|
|
|
group: root |
|
|
|
mode: '0644' |
|
|
|
notify: |
|
|
|
- Restart MPD |
|
|
|
loop: "{{ range(1,mpdcount|int + 1) }}" |
|
|
|
- name: setup service on hosts |
|
|
|
template: |
|
|
@@ -106,6 +116,8 @@ |
|
|
|
owner: root |
|
|
|
group: root |
|
|
|
loop: "{{ range(1,mpdcount|int + 1) }}" |
|
|
|
notify: |
|
|
|
- Restart MPD |
|
|
|
- name: mpd service start |
|
|
|
systemd: |
|
|
|
name: "mpdf{{ item }}" |
|
|
@@ -115,4 +127,8 @@ |
|
|
|
daemon_reload: yes |
|
|
|
loop: "{{ range(1,mpdcount|int + 1) }}" |
|
|
|
|
|
|
|
|
|
|
|
handlers: |
|
|
|
- name: Restart MPD |
|
|
|
ansible.builtin.service: |
|
|
|
name: mpd |
|
|
|
state: restarted |