|
|
@@ -74,21 +74,21 @@ |
|
|
|
group: root |
|
|
|
mode: '0755' |
|
|
|
loop: "{{ range(1,count|int + 1) }}" |
|
|
|
- name: copy sticker.sql |
|
|
|
copy: |
|
|
|
src: "/var/lib/mpd/sticker.sql" |
|
|
|
dest: "var/lib/mpd{{ item }}/sticker.sql" |
|
|
|
owner: root |
|
|
|
group: root |
|
|
|
mode: '0644' |
|
|
|
- name: copy sticker.sql |
|
|
|
copy: |
|
|
|
src: "/var/lib/mpd/sticker.sql" |
|
|
|
dest: "var/lib/mpd{{ item }}/sticker.sql" |
|
|
|
owner: root |
|
|
|
group: root |
|
|
|
mode: '0644' |
|
|
|
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 |
|
|
|
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: |
|
|
|