2023-05-11 15:09:52 +02:00
|
|
|
---
|
|
|
|
- name: Ensure node_exporter is running and enabled at boot.
|
2024-10-08 11:31:26 +02:00
|
|
|
ansible.builtin.service:
|
2023-05-11 15:09:52 +02:00
|
|
|
name: node_exporter
|
2024-09-19 23:10:00 +02:00
|
|
|
state: started
|
|
|
|
daemon_reload: true
|
2023-05-11 15:09:52 +02:00
|
|
|
enabled: true
|
2024-09-19 23:10:00 +02:00
|
|
|
notify:
|
|
|
|
- Restart node_exporter
|
2023-05-11 15:09:52 +02:00
|
|
|
become: true
|