ansible/roles/smart_exporter/tasks/systemd.yml

10 lines
222 B
YAML
Raw Normal View History

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