--- - name: Restart logstash become: yes systemd: name: logstash.service state: restarted ...