- name: restart metricbeat service: name: metricbeat state: restarted enabled: yes