Files
gitlab-mirror/roles/smartctl_exporter/tasks/configure.yml
2025-12-16 11:40:16 +03:00

11 lines
428 B
YAML

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