add smartctl_exporter role

This commit is contained in:
Sergey Malyuk
2025-12-16 11:40:16 +03:00
parent 7a41b9697c
commit d8d3c2df67
21 changed files with 341 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
---
- name: "Upload smartctl_exporter local configure file"
notify: "(Re)start and enable smartctl_exporter"
when: smartctl_exp_source_web_config_dir is defined and smartctl_exp_source_web_config_dir | length > 0
ansible.builtin.template:
src: "{{ smartctl_exp_source_web_config_dir }}/web_smartctl.conf"
dest: "{{ smartctl_exp_web_config_dir }}/web_smartctl.conf"
owner: root
group: root
mode: '0640'