This role installes Grafana with opiniated default settings.
None.
There are three variables that drive this role: _grafana
, RW_APT_CACHE_UPDATE
, and RW_ENABLE_DOWNLOADS
. _grafana
is a map that contains all configuration and settings for this role. RW_APT_CACHE_UPDATE
RW_ENABLE_DOWNLOADS? may be specified as _extra variables_ on invocation of Ansible in order to force
apt-get updateor download assets from the Internet, respectively. Please see
defaults/main.yml` for details.
None.
The general contract of this role is to take the variables map _grafana
from defaults/main.yml
as a template for your configuration and pass that configuration as a parameter to this role.
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
var:
GRAFANA:
...
roles:
- { role: grafana, tags: [ 'grafana' ], _grafana: "{{ GRAFANA }}" }
Please see LICENSE.
Original author is Lukas Pustina as member of the Rheinwerk project.