src: files/dashboards
dest: /tmp/
when: devel_mode
+ tags:
+ - dashboards
- name: Ship dashUpdater.py
copy:
src: files/dashUpdater.py
dest: /tmp/dashUpdater.py
when: devel_mode
+ tags:
+ - dashboards
- name: Write dashboard.yml
template:
src: dashboard.yml
dest: /tmp/dashboard.yml
mode: 0600
+ tags:
+ - dashboards
- name: Set dashupdate_cmd and dashboard_dir
set_fact:
dashupdate_cmd: "python /tmp/dashUpdater.py"
dashboard_dir: "/tmp/dashboards"
when: devel_mode
+ tags:
+ - dashboards
- name: Set dashupdate_cmd and dashboard_dir
set_fact:
dashupdate_cmd: "/usr/libexec/cephmetrics/dashUpdater.py"
dashboard_dir: "/usr/share/cephmetrics/dashboards"
when: not devel_mode
+ tags:
+ - dashboards
- name: Set dashupdate_mode
set_fact:
dashupdate_mode: "{{ 'refresh' if replace_dashboards else 'update' }}"
+ tags:
+ - dashboards
- name: Push dashboards to Grafana
command: "{{ dashupdate_cmd }} -m {{ dashupdate_mode }} -c /tmp/dashboard.yml -D {{ dashboard_dir }}"
+ tags:
+ - dashboards