Writing the Gitea role.

This commit is contained in:
Tom
2026-02-09 13:04:40 +01:00
commit f45e4cc076
6 changed files with 280 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
# {{ ansible_managed }}
[Unit]
Description=Gitea (Git with a cup of tea)
After=network.target
[Service]
RestartSec=2s
Type=simple
User={{ gitea_user }}
Group={{ gitea_group }}
WorkingDirectory=/var/lib/gitea/
ExecStart=/usr/local/bin/gitea web --config /etc/gitea/app.ini
Restart=always
Environment=USER={{ gitea_user }} HOME=/home/{{ gitea_user }} GITEA_WORK_DIR=/var/lib/gitea
[Install]
WantedBy=multi-user.target