ansible/traefik.yml

23 lines
545 B
YAML
Raw Permalink Normal View History

2024-11-25 01:34:37 +00:00
- name: Manage traefik server
hosts: traefik
become: true
roles:
- traefik
2024-11-25 00:32:23 +00:00
- 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