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