ansible/roles/node_exporter/tasks/systemd.yml

10 lines
219 B
YAML

---
- name: Ensure node_exporter is running and enabled at boot.
service:
daemon_reload: true
name: node_exporter
state: restarted
enabled: true
when: node_exporter_service is changed
become: true