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:
parent
242c1880de
commit
acff29f554
4 changed files with 6 additions and 2 deletions
|
|
@ -1,3 +1,5 @@
|
|||
---
|
||||
- name: restart alloy
|
||||
ansible.builtin.command: brew services restart grafana-alloy
|
||||
async: 120
|
||||
poll: 0
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
---
|
||||
dependencies:
|
||||
- role: node_exporter
|
||||
- role: alloy
|
||||
- role: devpi
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
---
|
||||
- name: restart loki
|
||||
ansible.builtin.command: brew services restart loki
|
||||
async: 120
|
||||
poll: 0
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
---
|
||||
dependencies:
|
||||
- role: node_exporter
|
||||
- role: alloy
|
||||
- role: transmission
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue