initial ansible code
This commit is contained in:
16
roles/systemd_exporter/templates/systemd_exporter.service.j2
Normal file
16
roles/systemd_exporter/templates/systemd_exporter.service.j2
Normal file
@@ -0,0 +1,16 @@
|
||||
## Managed by Ansible ##
|
||||
|
||||
[Unit]
|
||||
Description=Prometheus Systemd Exporter
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User={{ systemd_exporter_system_user }}
|
||||
Group={{ systemd_exporter_system_group }}
|
||||
ExecStart={{ systemd_exporter_install_dir }}/systemd_exporter --systemd.collector.unit-include="{{ systemd_exporter_include }}"
|
||||
Restart=always
|
||||
RestartSec=1
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user