Grafana: Run priviliged when copying home dashboard file

The copy job for the grafana home dashboard file needs to run
priviliged, otherwise permission denied error occurs.

Closes-Bug: #1947710

Change-Id: Ib15e961e5193af55e45a443305a96667295f3cb7
This commit is contained in:
Uwe Grawert 2021-10-08 12:15:36 +02:00
parent f1cbff6b7e
commit 82b0e095a5
2 changed files with 8 additions and 0 deletions

View File

@ -76,6 +76,7 @@
run_once: True
- name: Copying over grafana home dashboard if exists
become: true
template:
src: "{{ node_custom_config }}/grafana/grafana_home_dashboard.json"
dest: "{{ node_config_directory }}/grafana/grafana_home_dashboard.json"

View File

@ -0,0 +1,7 @@
---
fixes:
- |
Fixes the copy job for grafana custom home dashboard file.
The copy job for the grafana home dashboard file needs to run priviliged,
otherwise permission denied error occurs.
`LP#[1947710] <https://launchpad.net/bugs/1947710>`__