feat: initial installation role for grafana

This commit is contained in:
2026-05-24 17:13:39 +02:00
commit 268f86ef38
8 changed files with 139 additions and 0 deletions

28
README.md Normal file
View File

@@ -0,0 +1,28 @@
# ansible-role-grafana
Installs Grafana on Debian/Ubuntu (via apt.grafana.com) and RHEL/Fedora
(via rpm.grafana.com). Installs the OSS edition by default.
## Requirements
- Ansible >= 2.14
## Role Variables
| Variable | Default | Description |
|---|---|---|
| `grafana_package` | `grafana` | Package name (`grafana` or `grafana-enterprise`) |
| `grafana_service_enabled` | `true` | Enable service at boot |
| `grafana_service_state` | `started` | Service state after installation |
## Example Playbook
```yaml
- hosts: servers
roles:
- role: ansible-role-grafana
```
## License
MIT