Watch
1
0
Fork
You've already forked ansible_collection_git
0
mirror of https://github.com/roles-ansible/ansible_collection_git.git synced 2026-10-23 00:03:00 +02:00
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
L3D f86f24013f
Merge pull request #68 from roles-ansible/c
Improve linting and update modules
2026-08-27 15:12:50 +02:00
.github Bump actions/checkout from 6 to 7 2026-06-19 05:32:37 +00:00
meta Improve linting and update modules 2026-08-27 15:10:12 +02:00
roles Improve linting and update modules 2026-08-27 15:10:12 +02:00
.ansible-lint Improve linting and update modules 2026-08-27 15:10:12 +02:00
.gitignore Improve linting and update modules 2026-08-27 15:10:12 +02:00
.gitmodules Create forgejo runner 2024-03-21 17:12:54 +01:00
.yamllint Improve linting and update modules 2026-08-27 15:10:12 +02:00
changelog Integrate gitea role 2023-03-31 13:45:14 +02:00
CHANGELOG.md Integrate gitea role 2023-03-31 13:45:14 +02:00
CHANGELOG.rst Integrate gitea role 2023-03-31 13:45:14 +02:00
galaxy.yml update gitea fact 2026-01-14 22:06:25 +01:00
LICENSE Initialize Collection 2023-03-31 13:32:54 +02:00
README.md update gitea fact 2026-01-14 22:06:25 +01:00
requirements.txt Improve gitea gpg permissions and requirements 2023-05-15 16:18:32 +02:00

collection l3d.git Maintainance License

Ansible Collection - l3d.git

This is the Ansible Collection l3d.git. Here are all our ansible roles for installing git server.

Ansible Roles in l3d.git

  • l3d.git.gitea - Ansible role to install gitea or forgejo git server
  • l3d.git.forgejo_runner - Ansible role to install forgejo runner

Using this Collection

You can install the collection using ansible-galaxy by running:

ansible-galaxy collection install l3d.git:1.1.13

Remember you can to Upgrade to the latest version of the l3d.git collection using the --upgrade parameter:

ansible-galaxy collection install l3d.git --upgrade

Or you could clone this collection in your local ansible project for example to collections/ansible_collections/l3d/git/. Make sure you checkout git submodules too. Example:

# Clone git Repo with submodules to specified path
git clone --recursive https://github.com/roles-ansible/ansible_collection_git.git collections/ansible_collections/l3d/git/

# change directory
cd collections/ansible_collections/l3d/git/

# optionally init git submodules
git submodule update --init --recursive

You can also list a collection in requirements.yml:

---
collections:
  - name: l3d.git
    version: ">=1.1.13"

Include roles in your playbook

Example Playbook using the l3d.git.gitea role:

---
- name: "Install forgejo git server from collection l3d.git"
  hosts: git.example.com
  roles:
    - {role: l3d.git.gitea, tags: forgejo}
  vars:
    # Here we assume we are behind a reverse proxy that will
    # handle https for us, so we bind on localhost:3000 using HTTP
    # see https://docs.gitea.io/en-us/reverse-proxies/#nginx
    gitea_fqdn: 'git.example.com'
    gitea_root_url: 'https://git.example.com'
    gitea_protocol: http
    gitea_start_ssh: true
    gitea_fork: 'forgejo'

Requirements

The roles in this collection using the ansible.builtin and community.general ansible Collections. To download the latest forgejo/gitea release we use json_query. This requires jmespath to be available.

Example Python Requirements Installation:

# pip requirements
pip install -r requirements.txt