Go to file
2023-07-17 00:24:35 +02:00
files Make sure selinux context is reset 2022-02-01 00:19:10 +01:00
handlers Restart when there is change 2020-11-07 21:40:33 +01:00
meta Fix the port 2020-11-22 11:58:25 +01:00
tasks Use include_tasks 2022-01-25 22:55:43 +01:00
templates Adapt to gitea 1.20, who support notify 2023-07-17 00:24:35 +02:00
vars Change the name of the variable, cleaner this way 2020-11-07 23:45:52 +01:00
LICENSE Add initial role, still a lot to do 2020-11-07 16:58:04 +01:00
README.md Correct the README 2022-03-23 11:38:02 +01:00
TODO Add more TODO 2020-11-08 00:39:11 +01:00

Ansible module used to install gitea

Usage

- hosts: git
  vars: mail_domain: example.org
  roles:
  - name: gitea
    vhost: git.example.org
    version: 1.12.5 
    checksum: "8ed8bff1f34d8012cab92943214701c10764ffaca102e311a3297edbb8fce940"
    

Database

By default, the role use Postgresql.

Settings

Allowed hosts

By default, gitea do not allow webhooks to connect to internal hosts for security reasons. The setting webhook.ALLOWED_HOST_LIST can be set with the variable webhook_hosts.

- hosts: git
  vars: mail_domain: example.org
  roles:
  - name: gitea
    vhost: git.example.org
    version: 1.12.5 
    checksum: "8ed8bff1f34d8012cab92943214701c10764ffaca102e311a3297edbb8fce940"
    webhook_hosts:
    - private