2022-11-22 17:43:34 +01:00
|
|
|
{{ ansible_managed | comment }}
|
2022-11-21 17:57:49 +01:00
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Execute the ping_exporter server.
|
|
|
|
|
|
|
|
[Service]
|
2022-11-22 17:43:34 +01:00
|
|
|
Type=simple
|
2022-11-21 17:57:49 +01:00
|
|
|
WorkingDirectory={{ ping_exporter__user_home }}
|
2022-11-22 17:43:34 +01:00
|
|
|
User={{ ping_exporter__user }}
|
|
|
|
Group={{ ping_exporter__group }}
|
2022-11-23 18:18:12 +01:00
|
|
|
ExecStart=/usr/bin/ping_exporter --config.path {{ ping_exporter__user_home }}/ping_exporter_config.yml --web.listen-address="{{ ping_exporter__web_listen_address }}"
|
2022-11-23 14:43:18 +01:00
|
|
|
CapabilityBoundingSet=CAP_NET_RAW
|
2022-11-22 17:43:34 +01:00
|
|
|
AmbientCapabilities=CAP_NET_RAW
|
2022-11-21 17:57:49 +01:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|