Bladeren bron

working on changes, and debugging

master
Erin Sims 2 jaren geleden
bovenliggende
commit
f45bb4131a
2 gewijzigde bestanden met toevoegingen van 7 en 7 verwijderingen
  1. +0
    -0
      playbooks/digitalocean.yaml
  2. +7
    -7
      playbooks/mpdf.yaml

playbooks/do_hosts.yaml → playbooks/digitalocean.yaml Bestand weergeven


+ 7
- 7
playbooks/mpdf.yaml Bestand weergeven

@@ -1,7 +1,7 @@
- hosts: mpdf - hosts: mpdf
gather_facts: true gather_facts: true
vars: vars:
count: 5
mpdcount: 5
path: /var/lib/mpd path: /var/lib/mpd
playlist_directory: /playlist/ playlist_directory: /playlist/
db_file: tag_cache db_file: tag_cache
@@ -51,7 +51,7 @@
mode: 0644 mode: 0644
owner: root owner: root
group: root group: root
loop: "{{ range(1,count|int + 1) }}"
loop: "{{ range(1,mpdcount|int + 1) }}"
- name: mpdf var directory - name: mpdf var directory
file: file:
path: "/var/lib/mpd{{ item }}" path: "/var/lib/mpd{{ item }}"
@@ -67,7 +67,7 @@
owner: root owner: root
group: root group: root
mode: '0755' mode: '0755'
loop: "{{ range(1,count|int + 1) }}"
loop: "{{ range(1,mpdcount|int + 1) }}"
# - name: mpdf pid file # - name: mpdf pid file
# file: # file:
# path: "/var/lib/mpd{{ item }}/pid" # path: "/var/lib/mpd{{ item }}/pid"
@@ -83,7 +83,7 @@
owner: root owner: root
group: root group: root
mode: '0755' mode: '0755'
loop: "{{ range(1,count|int + 1) }}"
loop: "{{ range(1,mpdcount|int + 1) }}"
- name: copy sticker.sql - name: copy sticker.sql
copy: copy:
src: "/var/lib/mpd/sticker.sql" src: "/var/lib/mpd/sticker.sql"
@@ -91,7 +91,7 @@
owner: root owner: root
group: root group: root
mode: '0644' mode: '0644'
loop: "{{ range(1,count|int + 1) }}"
loop: "{{ range(1,mpdcount|int + 1) }}"
- name: setup service on hosts - name: setup service on hosts
template: template:
src: mpdf.service.j2 src: mpdf.service.j2
@@ -99,7 +99,7 @@
mode: 0644 mode: 0644
owner: root owner: root
group: root group: root
loop: "{{ range(1,count|int + 1) }}"
loop: "{{ range(1,mpdcount|int + 1) }}"
- name: mpd service start - name: mpd service start
systemd: systemd:
name: "mpdf{{ item }}" name: "mpdf{{ item }}"
@@ -107,6 +107,6 @@
enabled: yes enabled: yes
masked: no masked: no
daemon_reload: yes daemon_reload: yes
loop: "{{ range(1,count|int + 1) }}"
loop: "{{ range(1,mpdcount|int + 1) }}"





Laden…
Annuleren
Opslaan