|
@@ -42,7 +42,6 @@ |
|
|
apt: |
|
|
apt: |
|
|
name: mpd |
|
|
name: mpd |
|
|
state: present |
|
|
state: present |
|
|
|
|
|
|
|
|
- name: setup config on hosts |
|
|
- name: setup config on hosts |
|
|
template: |
|
|
template: |
|
|
src: mpdf.conf.j2 |
|
|
src: mpdf.conf.j2 |
|
@@ -52,3 +51,22 @@ |
|
|
group: root |
|
|
group: root |
|
|
loop: "{{ range(1,count|int + 1) }}" |
|
|
loop: "{{ range(1,count|int + 1) }}" |
|
|
|
|
|
|
|
|
|
|
|
- name: setup service on hosts |
|
|
|
|
|
template: |
|
|
|
|
|
src: mpdf.service.j2 |
|
|
|
|
|
dest: "/usr/lib/systemd/system/mpdf{{ item }}.service" |
|
|
|
|
|
mode: 0644 |
|
|
|
|
|
owner: root |
|
|
|
|
|
group: root |
|
|
|
|
|
loop: "{{ range(1,count|int + 1) }}" |
|
|
|
|
|
|
|
|
|
|
|
- name: mpd service start |
|
|
|
|
|
systemd: |
|
|
|
|
|
name: "mpd{{ item }}" |
|
|
|
|
|
state: started |
|
|
|
|
|
enabled: yes |
|
|
|
|
|
masked: no |
|
|
|
|
|
daemon_reload: yes |
|
|
|
|
|
loop: "{{ range(1,count|int + 1) }}" |
|
|
|
|
|
|
|
|
|
|
|
|