--- - name: restart metricbeat service: name: metricbeat state: restarted ...