mirror of
https://codeberg.org/forgejo-contrib/ansible.git
synced 2026-08-21 08:46:23 +00:00
Forgejo Ansible collection
https://galaxy.ansible.com/ui/repo/published/forgejo/forgejo/
- Jinja 95.3%
- Just 4.2%
- Go Template 0.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
## Summary - make `forgejo_db_log_sql` unset by default - omit `LOG_SQL` from `forgejo.ini` when the variable is unset - preserve explicit `true` and `false` values for administrators who deliberately pin the behavior - add Molecule coverage for the default omission ## Why The role currently renders `LOG_SQL = false`, which is identical to Forgejo's current default but pins that behavior across upgrades. Omitting a value that the administrator did not choose lets the deployment follow Forgejo upstream while retaining the existing opt-in variable for explicit policy. ## Validation - `yamllint --strict -f parsable .` - `ansible-lint` (production profile) - rendered the template with unset, `false`, and `true` values and verified the resulting lines - `git diff --check` Reviewed-on: https://codeberg.org/forgejo-contrib/ansible/pulls/67 |
||
| .gitsv | ||
| .woodpecker | ||
| ansibledoctor/templates/readme | ||
| extensions/molecule/default | ||
| meta | ||
| roles/forgejo | ||
| .ansible-lint | ||
| .ansibledoctor.yaml | ||
| .editorconfig | ||
| .editorconfig-checker.json | ||
| .gitignore | ||
| .markdownlint.yaml | ||
| .pre-commit-config.yaml | ||
| .prettierignore | ||
| .prettierrc.json | ||
| .yamllint.yaml | ||
| ansible.cfg | ||
| CODEOWNERS | ||
| galaxy.yml | ||
| Justfile | ||
| LICENSE | ||
| README.md | ||
| renovate.json | ||
| requirements.yaml | ||
Ansible
Ansible Collection for Forgejo.
Installation
ansible-galaxy collection install forgejo.forgejo
See the READMEs of the individual roles for usage instructions:
Testing
The roles are tested with Molecule using the Docker driver.
Scenarios live under extensions/molecule/.
They spin up privileged, systemd-enabled containers, so they are run locally (or on a trusted, self-hosted runner) rather than on Codeberg's shared CI, which does not grant privileged mode.
Set up a local virtualenv once:
just init-venv
Then run a scenario by name:
just molecule default
The default scenario converges the forgejo role on Debian 13, Ubuntu 26.04 and Rocky Linux 9 and verifies that the binary, configuration, system user and systemd service are in place.