Add loki service

This commit is contained in:
Tobias Reisinger 2025-06-08 19:58:44 +02:00
parent 37a304d161
commit cbc5df483d
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
11 changed files with 170 additions and 3 deletions

View file

@ -0,0 +1,22 @@
---
- name: Set common facts
ansible.builtin.import_tasks: tasks/set-default-facts.yml
- name: Deploy {{ role_name }}
vars:
svc: "{{ loki_svc }}"
yml: "{{ loki_yml }}"
compose: "{{ loki_compose }}"
block:
- name: Import prepare tasks for common service
ansible.builtin.import_tasks: tasks/prepare-common-service.yml
- name: Template loki config file
ansible.builtin.template:
src: yml.j2
dest: "{{ (service_path, 'loki.yaml') | path_join }}"
mode: "0644"
notify: Restart service {{ role_name }}
- name: Import start tasks for common service
ansible.builtin.import_tasks: tasks/start-common-service.yml