forked from bitlair/ansible
Add git-ci role
This commit is contained in:
parent
bc8e27f9a6
commit
45d29d1280
6 changed files with 86 additions and 0 deletions
14
roles/git-ci/templates/forgejo-runner.service
Normal file
14
roles/git-ci/templates/forgejo-runner.service
Normal file
|
@ -0,0 +1,14 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
[Unit]
|
||||
Description=Forgejo Runner
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/bin/forgejo-runner daemon
|
||||
WorkingDirectory={{ runner_wd }}
|
||||
Restart=on-failure
|
||||
RestartSec=10s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue