ansible/roles/smart_exporter/tasks/systemd.yml

10 lines
222 B
YAML

---
- 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