ansible-infra/ansible_collections/grafana/grafana/roles/alloy/handlers/main.yml
Stefan Bethke 2aed20393f
Some checks failed
/ Ansible Lint (push) Failing after 5m45s
/ Ansible Lint (pull_request) Failing after 4m59s
Vendor Galaxy Roles and Collections
2026-02-06 22:07:16 +01:00

17 lines
444 B
YAML

---
# handlers file for alloy
- name: Restart alloy
listen: "restart alloy"
ansible.builtin.systemd:
daemon_reload: true
name: alloy.service
state: restarted
enabled: true
when: not ansible_check_mode
- name: Restart alloy macos
listen: "restart alloy macos"
ansible.builtin.command: "brew services restart {{ __alloy_brew_package }}"
when:
- not ansible_check_mode
- ansible_facts['os_family'] == 'Darwin'