• Jinja 95.3%
  • Just 4.2%
  • Go Template 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
pat-s 3c79f56b4f fix: leave LOG_SQL unset by default (#67)
## 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
2026-08-08 22:07:34 +02:00
.gitsv chore: add linters 2025-08-21 10:57:51 +02:00
.woodpecker Update mstruebing/editorconfig-checker Docker tag to v3.9.0 (#66) 2026-08-01 00:04:42 +02:00
ansibledoctor/templates/readme feat: make the code indexer type configurable; add zoekt support (#64) 2026-07-31 18:39:04 +02:00
extensions/molecule/default fix: leave LOG_SQL unset by default (#67) 2026-08-08 22:07:34 +02:00
meta init 2025-08-05 09:33:41 +02:00
roles/forgejo fix: leave LOG_SQL unset by default (#67) 2026-08-08 22:07:34 +02:00
.ansible-lint refactor: rebrand 2025-08-05 10:28:17 +02:00
.ansibledoctor.yaml chore: add ansibledoctor config 2025-08-21 11:29:55 +02:00
.editorconfig chore: add linters 2025-08-21 10:57:51 +02:00
.editorconfig-checker.json chore: add linters 2025-08-21 10:57:51 +02:00
.gitignore ci: don't commit tarballs after releases 2026-04-21 09:58:24 +02:00
.markdownlint.yaml chore: add linters 2025-08-21 10:57:51 +02:00
.pre-commit-config.yaml feat: make the code indexer type configurable; add zoekt support (#64) 2026-07-31 18:39:04 +02:00
.prettierignore feat: make the code indexer type configurable; add zoekt support (#64) 2026-07-31 18:39:04 +02:00
.prettierrc.json init 2025-08-05 09:33:41 +02:00
.yamllint.yaml fix: address ansible syntax deprecations from recent ansible-core versions (#43) 2026-04-21 09:39:11 +02:00
ansible.cfg refactor: rebrand 2025-08-05 10:28:17 +02:00
CODEOWNERS chore: add @l3d as codeowner 2025-11-03 11:11:34 +01:00
galaxy.yml [skip ci] Update galaxy.yml after release 2026-08-01 06:54:04 +00:00
Justfile feat: make the code indexer type configurable; add zoekt support (#64) 2026-07-31 18:39:04 +02:00
LICENSE init 2025-08-05 09:33:41 +02:00
README.md test(molecule): add molecule scenario for the forgejo role (#62) 2026-07-20 22:55:49 +02:00
renovate.json chore: allow renovate automerge (#41) 2026-04-21 09:02:42 +02:00
requirements.yaml Update dependency community.general to v13 (#60) 2026-07-18 11:24:45 +02:00

Ansible

Ansible Collection for Forgejo.

Installation

ansible-galaxy collection install forgejo.forgejo

Ansible Galaxy

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.