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