This repository has been archived on 2020-08-09. You can view files and clone it, but cannot push or open issues or pull requests.
ansible-grafana/tasks/main.yml

19 lines
469 B
YAML

- name: Copy grafana config
template:
follow: yes
src: 'grafana.ini.j2'
dest: '/etc/grafana/grafana.ini'
notify: Run service actions
tags:
- grafana
- vault
- name: Install grafana plugins
loop: "{{ grafana.plugins }}"
command:
argv: ["grafana-cli", "plugins", "install", "{{ item }}"]
tags:
- grafana
- plugins
when: ( grafana.plugins | default([]) ) | length
notify: Run service actions