An Ansible role to install Grafana Loki and Promtail.
This is a fork from:
https://github.com/ashleykleynhans/ansible-loki
For the standard (from binary) install of loki/promtail:
unzipon the hosts
See defaults/main.yml to customize this role.
A basic configuration file is a follows:
vi inventories/host_vars/<YOUR SERVER>/loki.ymladd:
---
loki_version: 2.9.1
loki_install: trueNone.
This role is driven by inventory groups:
all:
hosts:
monitoring.host.example.org:
children:
loki:
monitoring.host.example.org:
promtail:
monitoring.host.example.org:And the playbook:
- hosts: all
roles:
- role: rezizter.ansible_lokiBSD-2-Clause