|
|
@ -87,6 +87,12 @@ |
|
|
|
notify: restart grafana |
|
|
|
notify: restart grafana |
|
|
|
tags: grafana |
|
|
|
tags: grafana |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Since Grafana 7.5.7, grafana-cli even when invoked as root takes action under the grafana user |
|
|
|
|
|
|
|
# so we need to be sure permissions are OK, or plugin update/installation/removal will fail |
|
|
|
|
|
|
|
- name: Ensure correct permissions on data dir |
|
|
|
|
|
|
|
file: path=/var/lib/grafana owner=grafana group=grafana mode=770 recurse=True |
|
|
|
|
|
|
|
tags: grafana |
|
|
|
|
|
|
|
|
|
|
|
- name: Build a list of installed plugins |
|
|
|
- name: Build a list of installed plugins |
|
|
|
shell: grafana-cli plugins ls | perl -ne '/^(\w[\-\w]+)\s\@\s\d+\./ && print "$1\n"' |
|
|
|
shell: grafana-cli plugins ls | perl -ne '/^(\w[\-\w]+)\s\@\s\d+\./ && print "$1\n"' |
|
|
|
register: grafana_installed_plugins |
|
|
|
register: grafana_installed_plugins |
|
|
|