ansible/roles/node_exporter/templates/node_exporter.service.j2

11 lines
245 B
Django/Jinja

[Unit]
Description=NodeExporter
[Service]
TimeoutStartSec=0
User=node_exporter
ExecStart={{ node_exporter_bin_path }} --web.listen-address={{ host.ip }}:{{ node_exporter_port }} {{ node_exporter_options }}
[Install]
WantedBy=multi-user.target