---
- name: restart logstash
ansible.builtin.systemd:
name: logstash
state: restarted
daemon_reload: yes
- name: reload systemd
daemon-reload: yes