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.

Also update transmission_metrics and devpi_metrics to depend on
alloy instead of node_exporter, since alloy now handles the
textfile collector.

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 acff29f554
4 changed files with 6 additions and 2 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,4 +1,4 @@
---
dependencies:
- role: node_exporter
- role: alloy
- role: devpi

View file

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

View file

@ -1,4 +1,4 @@
---
dependencies:
- role: node_exporter
- role: alloy
- role: transmission