Fix ansible handler timeouts for alloy and loki restarts

Use async with poll: 0 to fire-and-forget service restarts.
These services have graceful shutdown periods that can exceed
ansible's default command timeout.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Erich Blume 2026-01-15 12:43:25 -08:00
commit f78567798c
2 changed files with 4 additions and 0 deletions

View file

@ -1,3 +1,5 @@
---
- name: restart alloy
ansible.builtin.command: brew services restart grafana-alloy
async: 120
poll: 0

View file

@ -1,3 +1,5 @@
---
- name: restart loki
ansible.builtin.command: brew services restart loki
async: 120
poll: 0