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>
5 lines
102 B
YAML
5 lines
102 B
YAML
---
|
|
- name: restart loki
|
|
ansible.builtin.command: brew services restart loki
|
|
async: 120
|
|
poll: 0
|