add extras role

This commit is contained in:
uumas
2023-04-19 01:45:05 +03:00
parent 70a4684f51
commit d05e42fe18
36 changed files with 1017 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
# {{ ansible_managed }}
[Unit]
Description={{ matrix_extra }}
After=matrix-synapse.service
PartOf=matrix.target
[Service]
Type=simple
User={{ matrix_extra }}
WorkingDirectory={{ matrix_extra_workdir }}
{% if matrix_extra_wait_before_start %}
ExecStartPre=/bin/sleep 30
{% endif %}
ExecStart={{ exec }}
Restart=always
RestartSec=3
[Install]
WantedBy=matrix.target