ansible/roles/node_exporter/tasks/systemd.yml

11 lines
230 B
YAML

---
- name: Ensure node_exporter is running and enabled at boot.
ansible.builtin.service:
name: node_exporter
state: started
daemon_reload: true
enabled: true
notify:
- Restart node_exporter
become: true