ansible-loki-role/handlers/main.yml

33 lines
563 B
YAML
Raw Normal View History

2020-04-19 22:28:06 +02:00
---
- name: restart loki
become: true
systemd:
daemon_reload: true
name: loki
state: restarted
2021-08-27 11:28:40 +02:00
enabled: true
2020-05-04 23:48:42 +02:00
when: ('loki' in loki_bins)
2020-04-19 22:28:06 +02:00
- name: reload loki
become: true
systemd:
name: loki
state: reloaded
2020-05-04 23:48:42 +02:00
when: ('loki' in loki_bins)
2020-04-20 02:21:00 +02:00
- name: restart promtail
become: true
systemd:
daemon_reload: true
name: promtail
state: restarted
2021-08-27 11:28:40 +02:00
enabled: true
2020-05-04 23:48:42 +02:00
when: ('promtail' in loki_bins)
2020-04-20 02:21:00 +02:00
- name: reload promtail
become: true
systemd:
name: promtail
state: reloaded
2021-08-27 11:28:40 +02:00
when: ('promtail' in loki_bins)