---
- name: Restart node_exporter
  become: true
  ansible.builtin.systemd_service:
    name: node_exporter
    state: restarted
    daemon_reload: true
  when: node_exporter_service_state == 'started'
