Simplify handler logic

This commit is contained in:
Alexander Gorelyshev
2025-12-26 21:58:02 +04:00
parent 99a34f4514
commit fac775cb9d
2 changed files with 5 additions and 16 deletions

View File

@@ -1,11 +1,7 @@
---
- name: "Restart the Promtail daemon"
- name: "Enable and restart the Promtail daemon"
ansible.builtin.systemd:
name: promtail
state: restarted
- name: "Reload the Promtail daemon configuration"
ansible.builtin.systemd:
enabled: true
daemon_reload: true