From ede6186ee6278a326a6cf2d800bd8e07406c2f54 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Tue, 20 Jun 2017 12:54:21 -0600 Subject: [PATCH] Pass --dashboard-dir to dashUpdater.py Signed-off-by: Zack Cerza --- ansible/roles/ceph-grafana/tasks/configure_grafana.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ansible/roles/ceph-grafana/tasks/configure_grafana.yml b/ansible/roles/ceph-grafana/tasks/configure_grafana.yml index 72cb91a..9085cfd 100644 --- a/ansible/roles/ceph-grafana/tasks/configure_grafana.yml +++ b/ansible/roles/ceph-grafana/tasks/configure_grafana.yml @@ -109,18 +109,12 @@ src: files/dashUpdater.py dest: /tmp/dashUpdater.py -- name: Set correct path in dashUpdater.py - replace: - path: /tmp/dashUpdater.py - regexp: "^dashboard_dir = '.*'" - replace: "dashboard_dir = 'dashboards'" - - name: Write dashboard.yml template: src: dashboard.yml dest: /tmp/dashboard.yml - name: Push dashboards to Grafana - command: python dashUpdater.py + command: python dashUpdater.py -D ./dashboards args: chdir: /tmp -- 2.47.3