nix-config/ansible/roles/elastic.beats/handlers/main.yml

11 lines
228 B
YAML

---
# handlers file for beats
- name: restart the service
become: yes
service:
name: "{{ beat_product }}"
state: restarted
enabled: true
when: start_service and restart_on_change and not beats_started.changed