Skip to main content

Forgejo Role

Deploy the Forgejo Git service as a Podman quadlet.


Variables​

VariableTypeOptionsDefaultDescription
podman_userstring---{{ ansible_user }}system user for rootless podman operations
forgejo_proxy_enabledbooltrue, falsefalseenable HTTP proxy for image pulls
forgejo_proxy_httpstring---""HTTP proxy URL
forgejo_proxy_httpsstring---""HTTPS proxy URL
forgejo_proxy_no_proxystring---""comma-separated list of proxy exclusions
forgejo_proxy_envlist of string---[]generated proxy environment entries
forgejo_network_enabledbooltrue, falsetruecreate and manage the podman network
forgejo_network_driverstring---bridgepodman network driver
forgejo_network_namestring---forgejo-internalpodman network name
forgejo_bind_ipstring---127.0.0.1host IP to bind exposed ports to
forgejo_port_map_enabledbooltrue, falsetrueexpose container ports on the host
forgejo_port_maplist of string---["3000:3000","2222:2222"]host:container port mappings
forgejo_versionstring---16.0.3container image version
forgejo_autoupdatebooltrue, falsetrueenable podman auto-update for this container
forgejo_db_hoststring---postgresql-podPostgreSQL container hostname
forgejo_db_namestring---forgejodatabase name
forgejo_db_userstring---forgejodatabase user
forgejo_db_passwordstring---""database user password
forgejo_domainstring---""external domain for the Forgejo instance
forgejo_oauth_client_idstring---""OAuth2 client ID for external authentication
forgejo_oauth_client_secretstring---""OAuth2 client secret
forgejo_oauth_domainstring---""OAuth2 provider domain
forgejo_oauth_namestring---""OAuth2 provider display name
forgejo_oauth_admin_groupstring---forgejo-adminOAuth2 group that grants admin access
forgejo_environment_varsdict---{}extra environment variables injected into the container
forgejo_extra_fileslist of dict---[]arbitrary file entries with src (controller path) or source (target path), dest, optional mount, mode, and template
forgejo_extra_dirslist of dict---[]arbitrary directory entries with src (controller directory) or source (target path), dest, optional mount and mode
forgejo_entrypointstring---""optional Forgejo container entrypoint override
forgejo_oauth_init_entrypointstring---""optional Forgejo OAuth initialization container entrypoint override