mirror of
https://github.com/roles-ansible/ansible_role_prometheus_ping_exporter.git
synced 2024-08-16 10:19:51 +02:00
16 lines
491 B
Django/Jinja
16 lines
491 B
Django/Jinja
{{ ansible_managed | comment }}
|
|
|
|
[Unit]
|
|
Description=Execute the ping_exporter server.
|
|
|
|
[Service]
|
|
Type=simple
|
|
WorkingDirectory={{ ping_exporter__user_home }}
|
|
User={{ ping_exporter__user }}
|
|
Group={{ ping_exporter__group }}
|
|
ExecStart=/usr/bin/ping_exporter --config.path {{ ping_exporter__user_home }}/ping_exporter_config.yml --web.listen-address="{{ ping_exporter__web_listen_address }}"
|
|
CapabilityBoundingSet=CAP_NET_RAW
|
|
AmbientCapabilities=CAP_NET_RAW
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|