From f45bb4131a8f64109c0c39cd1228da87409568a7 Mon Sep 17 00:00:00 2001 From: Erin Sims Date: Sun, 11 Sep 2022 16:45:05 -0400 Subject: [PATCH] working on changes, and debugging --- playbooks/{do_hosts.yaml => digitalocean.yaml} | 0 playbooks/mpdf.yaml | 14 +++++++------- 2 files changed, 7 insertions(+), 7 deletions(-) rename playbooks/{do_hosts.yaml => digitalocean.yaml} (100%) diff --git a/playbooks/do_hosts.yaml b/playbooks/digitalocean.yaml similarity index 100% rename from playbooks/do_hosts.yaml rename to playbooks/digitalocean.yaml diff --git a/playbooks/mpdf.yaml b/playbooks/mpdf.yaml index 3a0e239..76edb43 100644 --- a/playbooks/mpdf.yaml +++ b/playbooks/mpdf.yaml @@ -1,7 +1,7 @@ - hosts: mpdf gather_facts: true vars: - count: 5 + mpdcount: 5 path: /var/lib/mpd playlist_directory: /playlist/ db_file: tag_cache @@ -51,7 +51,7 @@ mode: 0644 owner: root group: root - loop: "{{ range(1,count|int + 1) }}" + loop: "{{ range(1,mpdcount|int + 1) }}" - name: mpdf var directory file: path: "/var/lib/mpd{{ item }}" @@ -67,7 +67,7 @@ owner: root group: root mode: '0755' - loop: "{{ range(1,count|int + 1) }}" + loop: "{{ range(1,mpdcount|int + 1) }}" # - name: mpdf pid file # file: # path: "/var/lib/mpd{{ item }}/pid" @@ -83,7 +83,7 @@ owner: root group: root mode: '0755' - loop: "{{ range(1,count|int + 1) }}" + loop: "{{ range(1,mpdcount|int + 1) }}" - name: copy sticker.sql copy: src: "/var/lib/mpd/sticker.sql" @@ -91,7 +91,7 @@ owner: root group: root mode: '0644' - loop: "{{ range(1,count|int + 1) }}" + loop: "{{ range(1,mpdcount|int + 1) }}" - name: setup service on hosts template: src: mpdf.service.j2 @@ -99,7 +99,7 @@ mode: 0644 owner: root group: root - loop: "{{ range(1,count|int + 1) }}" + loop: "{{ range(1,mpdcount|int + 1) }}" - name: mpd service start systemd: name: "mpdf{{ item }}" @@ -107,6 +107,6 @@ enabled: yes masked: no daemon_reload: yes - loop: "{{ range(1,count|int + 1) }}" + loop: "{{ range(1,mpdcount|int + 1) }}"