{"repo":"roles-ansible/ansible_role_gitea","free":true,"listed":false,"github":"https://github.com/roles-ansible/ansible_role_gitea","clone":"git clone https://github.com/roles-ansible/ansible_role_gitea.git","description":"Ansible role to configure and deploy gitea and forgejo, a painless self-hosted Git service.","language":"Jinja","stars":81,"topics":["gitea","ansible","ansible-role","gogs","git","git-server","go","forgejo","hacktoberfest"],"license":"BSD-3-Clause","category":"deployment-docker-iac","readme_excerpt":"ansible role gitea/forgejo This role installs and manages gitea or forgejo. A painless self-hosted Git service. Gitea is a community managed lightweight code hosting solution written in Go. Forgejo is a fork of it. Source code & screenshots gitea. Source code forgejo. This role is also Part of the Ansible-Collection l3d.git. . Mirrors The role is mirrored to: - Github: github.com/roles-ansible/ansible role gitea - Gitea: git.l3d.ch/ansible/ansible role gitea More about it at ansible.l3d.space Sample Usage in a playbook The following code has been tested with the latest Debian Stable, it should work on Ubuntu and RedHat as well. Choosing between Gitea's built-in SSH and host SSH Server Gitea has a built-in SSH server which is running on port 2222 (to not conflict with the host SSH server which usually running on port 22). This one is used by default in this role and results in a SSH clone URL of gitea@ :2222: / .git because gitea is the default RUN AS user. Often enough, one wants to have a \"clean\" SSH URL like git@ : / .git . This is possible by using the host SSH server with the following variable configuration: The above configuration works out of the box for new installations. When migrating from a running instance with existing SSH keys from the built-in SSH server to the host SSH server, you need to make sure that the host SSH server is running and that the gitea user has the necessary permissions to access the repository data and the keys (stored in /.ssh/ ) NB: To use ","default_branch":null,"files":null,"tree":[],"storefront":"/r/roles-ansible","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/roles-ansible/ansible_role_gitea/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}