ansible-loki-role/handlers/main.yml
2022-02-04 10:20:46 +01:00

39 lines
687 B
YAML

---
- name: restart loki
become: true
systemd:
daemon_reload: true
name: loki
state: restarted
enabled: true
when: ('loki' in loki_bins)
- name: reload loki
become: true
systemd:
name: loki
state: reloaded
enabled: true
when: ('loki' in loki_bins)
- name: restart promtail
become: true
systemd:
daemon_reload: true
name: promtail
state: restarted
enabled: true
when: ('promtail' in loki_bins)
- name: reload promtail
become: true
systemd:
name: promtail
state: reloaded
enabled: true
when: ('promtail' in loki_bins)
- name: Restart Docker
ansible.builtin.service:
name: docker
state: restarted