noplanman.gitea
Ansible Role for Installing Gitea
This role is inspired by ansible-role-gogs created by Jeff Geerling, the author of Ansible for DevOps.
:rocket: Development has moved to git.feneas.org.
(The GitHub repository is just a copy, so please fork on Feneas to contribute. No need to register, simply sign in with your GitHub account.)
This role installs Gitea, a web interface for Git, on RedHat or Debian-based Linux systems.
Once the installation is complete, go to the Gitea server (default port is 3000), and you will see the /install page. Here, you can set up an admin account and other initial settings.
Requirements
You need Git (install via geerlingguy.git
) and the Gitea HTTP port (default is 3000) must be open on your firewall.
Role Variables
Check the [defaults/main.yml
][defaults] file for more information.
gitea_user: git
gitea_user_home: /home/git
This specifies the user account and home directory for running and installing Gitea.
gitea_version: "1.6.3"
This specifies the version of Gitea to download and install.
gitea_download_url: "https://github.com/go-gitea/gitea/releases/download/v{{ gitea_version }}/gitea-{{ gitea_version }}-linux-amd64"
This is the link to download the Gitea binary.
gitea_checksum: "sha256:fb46981b16b8dbc01ae0a87c02f4c1ef0ec7037beaa918e5bb4d9a278cf9b9c8"
This is the SHA256 checksum used to verify the downloaded file.
gitea_http_port: 3000
This is the HTTP port for accessing Gitea.
Dependencies
- geerlingguy.git
Example Playbook
- hosts: server
vars:
gitea_http_port: 8080
roles:
- noplanman.gitea
Tests
Docker is used to test this role on different operating systems.
See the tests
folder for details.
License
MIT
ansible-galaxy install noplanman.gitea