---
- name: restart filebeat
ansible.builtin.systemd:
name: filebeat
state: restarted
when: not ansible_check_mode