22 lines
545 B
YAML
22 lines
545 B
YAML
- name: Manage traefik server
|
|
hosts: traefik
|
|
become: true
|
|
roles:
|
|
- traefik
|
|
- name: Manage promtail service
|
|
hosts: traefik
|
|
become: true
|
|
vars:
|
|
promtail_clients:
|
|
- url: http://192.168.1.183:3100/loki/api/v1/push
|
|
promtail_scrape_configs:
|
|
- job_name: system
|
|
static_configs:
|
|
- targets:
|
|
- localhost
|
|
labels:
|
|
job: traefik
|
|
instance: "{{ ansible_fqdn }}"
|
|
__path__: /var/log/traefik/*.log
|
|
roles:
|
|
- role: grafana.grafana.promtail
|