ansible-loki-role/handlers/main.yml

34 lines
598 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
2022-01-16 13:05:56 +01: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
2022-01-16 13:05:56 +01:00
enabled: true
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
2022-01-16 13:05:56 +01: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
2022-01-16 13:05:56 +01:00
enabled: true
2020-05-04 23:48:42 +02:00
when: ('promtail' in loki_bins)