gitea

Ansible Role to install Gitea

This role is based on ansible-role-gogs by Jeff Geerling, author of Ansible for DevOps.

Build Status Ansible Role


:rocket: Development has moved to git.feneas.org.

(The repository on GitHub is only a mirror, so fork on Feneas to contribute. No registration needed, just sign in with your GitHub account.)


Installs Gitea, a Go-based front-end to Git, on RedHat or Debian-based linux systems.

After the playbook is finished, visit the Gitea server (on port 3000 by default), and you will be redirected to the /install page, where you can configure an administrator account and other default options.

Requirements

Requires git (via geerlingguy.git) and at least the Gitea HTTP port (3000 by default) open on your system's firewall.

Role Variables

See the [defaults/main.yml][defaults] file for more details.

gitea_user: git
gitea_user_home: /home/git

The user and home under which Gitea will run and be installed.

gitea_version: "1.6.3"

Gitea binary version to download and install.

gitea_download_url: "https://github.com/go-gitea/gitea/releases/download/v{{ gitea_version }}/gitea-{{ gitea_version }}-linux-amd64"

Download URL for the Gitea binary.

gitea_checksum: "sha256:fb46981b16b8dbc01ae0a87c02f4c1ef0ec7037beaa918e5bb4d9a278cf9b9c8"

SHA256 checksum to verify the downloaded binary.

gitea_http_port: 3000

HTTP port over which Gitea will be accessed.

Dependencies

  • geerlingguy.git

Example Playbook

- hosts: server
  vars:
    gitea_http_port: 8080
  roles:
    - noplanman.gitea

Tests

Docker is used to test the role with different operating systems.

Check the tests folder.

License

MIT

About

Gitea (Git with a cup of tea)

Install
ansible-galaxy install noplanman/ansible-role-gitea
GitHub repository
License
mit
Downloads
92
Owner
Passionate open sourcerer and sharer 😇 Find me coding at @php-telegram-bot and a plethora of other little projects that I care about.