--- - name: restart elasticsearch systemd: name: elasticsearch state: restarted