ansible-loki-role/tasks/configure.yml

25 lines
531 B
YAML
Raw Permalink Normal View History

2020-04-20 02:21:00 +02:00
---
2023-05-20 15:28:15 +02:00
- name: Configure loki
ansible.builtin.template:
2020-04-20 02:21:00 +02:00
src: "loki.yml.j2"
dest: "{{ loki_config_dir }}/loki.yml"
force: true
owner: root
group: "{{ loki_user }}"
2023-05-20 15:28:15 +02:00
mode: "0640"
2020-04-20 02:21:00 +02:00
notify:
- reload loki
when: ('loki' in loki_bins)
2023-05-20 15:28:15 +02:00
- name: Configure promtail
ansible.builtin.template:
2020-04-20 02:21:00 +02:00
src: "promtail.yml.j2"
dest: "{{ loki_config_dir }}/promtail.yml"
force: true
owner: root
group: "{{ loki_user }}"
2023-05-20 15:28:15 +02:00
mode: "0640"
2020-04-20 02:21:00 +02:00
notify:
- reload promtail
2022-03-04 14:43:35 +01:00
when: ('promtail' in loki_bins)