add kthxbye role

This commit is contained in:
2022-08-30 07:48:06 -05:00
parent 72254bd72e
commit 4a497c211a
9 changed files with 234 additions and 0 deletions

View File

@ -0,0 +1,20 @@
{{ ansible_managed | comment }}
[Unit]
Description=Kthxbye
Wants=network-online.target
After=network-online.target
After=alertmanager.service
[Service]
Type=simple
User={{ kthxbye_user }}
Group={{ kthxbye_group }}
WorkingDirectory={{ kthxbye_etc_path }}
ExecStart={{ kthxbye_bin_path }}/kthxbye \
{% if kthxbye_listen %}
-listen={{ kthxbye_listen }}
{% endif %}
[Install]
WantedBy=multi-user.target