fix ansible-lint errors

This commit is contained in:
Sergey Malyuk
2025-12-16 11:56:52 +03:00
parent 48652534ce
commit f4b945d1ed
7 changed files with 45 additions and 45 deletions

View File

@@ -10,24 +10,24 @@ Type=simple
User=root
Group=root
ExecStart=/usr/local/bin/smartctl_exporter \
--web.listen-address={{ smartctl_exp_web_listen_address }} \
--smartctl.interval={{ smartctl_exp_interval }} \
--smartctl.rescan={{ smartctl_exp_rescan }} \
{% if smartctl_exp_devices is defined and smartctl_exp_devices | length > 0 %}
{% for device in smartctl_exp_devices %}
--web.listen-address={{ smartctl_exporter_web_listen_address }} \
--smartctl.interval={{ smartctl_exporter_interval }} \
--smartctl.rescan={{ smartctl_exporter_rescan }} \
{% if smartctl_exporter_devices is defined and smartctl_exporter_devices | length > 0 %}
{% for device in smartctl_exporter_devices %}
--smartctl.device={{ device }} \
{% endfor %}
{% endif %}
--smartctl.device-exclude={{ smartctl_exp_device_exclude }} \
--smartctl.device-include={{ smartctl_exp_device_include }} \
--web.telemetry-path={{ smartctl_exp_web_telemetry_path }} \
--log.level={{ smartctl_exp_log_level }} \
--log.format={{ smartctl_exp_log_format }} \
{% if smartctl_exp_args is defined and smartctl_exp_args | length > 0 %}
{{ smartctl_exp_args }} \
--smartctl.device-exclude={{ smartctl_exporter_device_exclude }} \
--smartctl.device-include={{ smartctl_exporter_device_include }} \
--web.telemetry-path={{ smartctl_exporter_web_telemetry_path }} \
--log.level={{ smartctl_exporter_log_level }} \
--log.format={{ smartctl_exporter_log_format }} \
{% if smartctl_exporter_args is defined and smartctl_exporter_args | length > 0 %}
{{ smartctl_exporter_args }} \
{% endif %}
{% if smartctl_exp_source_web_config_dir is defined and smartctl_exp_source_web_config_dir | length > 0 %} \
--web.config.file={{ smartctl_exp_web_config_dir }}/web_smartctl.conf
--web.config.file={{ smartctl_exporter_web_config_dir }}/web_smartctl.conf
{% endif %}
SyslogIdentifier=smartctl_exporter