If a human (or API request) changes the home dashboard for the admin
account, our method of setting it at the org level will no longer be
effective. Let's keep the admin user's home dashboard set to
ceph-at-a-glance.
Signed-off-by: Zack Cerza <zack@redhat.com>
register: dashboard_home
no_log: true
-- name: Set the home dashboard
+- name: Set the org's home dashboard
uri:
- url: http://localhost:3000/api/org/preferences
+ url: "http://localhost:3000/api/{{ item }}/preferences"
method: PUT
user: "{{ grafana.admin_user }}"
password: "{{ grafana.admin_password }}"
status_code: 200
body_format: json
body: '{"homeDashboardId": {{ dashboard_home.json.dashboard.id }} }'
+ with_items:
+ - user
+ - org