This is a ansible role to install and upgrade your gitea to the latest version. First a backup is done (docs) to have a fallback, after that the upgrade is done. The previous version of the gitea binary is stored in the specified backup directory. Finally there is an healthcheck to check if the server is up an running again. Additionally a cron job creates a database backup every night.
The role was developed on Raspbian, but should run on every Debian based system.
- change the variables in the inventory/group_vars/{gitea,all} files.
- change the inventory/hosts file
After that you can run it with the command ansible-playbook playbooks/gitea.yml