mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-25 05:10:20 +00:00
fix: remove quotation of flags in systemd config file
Remove the quotation around the collector option flags and values in the node_exporter role systemd unit config file template so that regex values get parsed correctly. Refs: #68 Signed-off-by: Andrew Kingston <andrew.kingston@framestore.com>
This commit is contained in:
parent
ebae6c7610
commit
a2fa58b772
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ ExecStart={{ node_exporter_binary_install_dir }}/node_exporter \
|
|||
{% set name, options = (collector.items()|list)[0] -%}
|
||||
--collector.{{ name }} \
|
||||
{% for k,v in options|dictsort %}
|
||||
{{ ( '--collector.' + name + '.' + k + '=' + v ) | quote }} \
|
||||
--collector.{{ name }}.{{ k }}={{ v }} \
|
||||
{% endfor -%}
|
||||
{% endif -%}
|
||||
{% endfor -%}
|
||||
|
|
Loading…
Reference in a new issue