ansible/roles/promtail/templates/promtail.service.j2

20 lines
355 B
Plaintext
Raw Normal View History

2022-08-30 12:50:35 +00:00
{{ ansible_managed | comment }}
[Unit]
Description=Loki
After=network-online.target
[Service]
Type=simple
User={{ promtail_user }}
Group={{ promtail_group }}
ExecStart={{ promtail_bin_path }}/promtail \
-config.file {{ promtail_config_path }}
WorkingDirectory={{ promtail_var_path }}
Restart=always
RestartSec=1
[Install]
WantedBy=multi-user.target