diff options
Diffstat (limited to 'roles/monitoring/grafana/tasks/main.yml')
-rw-r--r-- | roles/monitoring/grafana/tasks/main.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/monitoring/grafana/tasks/main.yml b/roles/monitoring/grafana/tasks/main.yml index 0cf968f1..55cce412 100644 --- a/roles/monitoring/grafana/tasks/main.yml +++ b/roles/monitoring/grafana/tasks/main.yml @@ -63,6 +63,17 @@ value: "{{ item.value | string }}" notify: restart grafana +- name: configure grafana plugins + loop: "{{ grafana_config_plugins | dict2items }}" + loop_control: + label: "{{ item.key }}" + ini_file: + path: /etc/grafana/grafana.ini + section: plugins + option: "{{ item.key }}" + value: "{{ item.value | string }}" + notify: restart grafana + - name: make sure grafan-server is enabled and started systemd: name: grafana-server |