mirror of
https://github.com/roles-ansible/ansible_collection_git.git
synced 2024-09-14 20:12:03 +02:00
.github | ||
meta | ||
roles | ||
.gitmodules | ||
.yamllint | ||
changelog | ||
CHANGELOG.md | ||
CHANGELOG.rst | ||
galaxy.yml | ||
LICENSE | ||
README.md | ||
requirements.yml |
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
Using this Collection
You can install the collection using ansible-galaxy by running:
ansible-galaxy collection install l3d.git
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
# optionally install all requirements
ansible-galaxy install -r requirements.yml
You can also list a collection in requirements.yml
:
---
collections:
- name: l3d.git
version: ">=1.0.1"
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'