All checks were successful
/ ansible-docsmith (push) Successful in 30s
Fixes #2. Signed-off-by: Julien Riou <julien@riou.xyz>
106 lines
2.8 KiB
YAML
106 lines
2.8 KiB
YAML
---
|
|
argument_specs:
|
|
main:
|
|
short_description: Install and configure a Forgejo instance
|
|
description:
|
|
- Install and configure a [Forgejo](https://forgejo.org/) instance.
|
|
author:
|
|
- jriou
|
|
options:
|
|
forgejo_server:
|
|
description:
|
|
- Enable the server mode
|
|
type: bool
|
|
default: true
|
|
|
|
forgejo_version:
|
|
description:
|
|
- Version of the Forgejo binaries
|
|
type: int
|
|
default: 14
|
|
|
|
forgejo_home_dir:
|
|
description:
|
|
- Path to the home directory
|
|
type: path
|
|
default: /var/lib/forgejo
|
|
|
|
forgejo_config_dir:
|
|
description:
|
|
- Path to the configuration directory
|
|
type: path
|
|
default: /etc/forgejo
|
|
|
|
forgejo_web_port:
|
|
description:
|
|
- Port to listen for the web UI
|
|
type: int
|
|
default: 3000
|
|
|
|
forgejo_ssh_port:
|
|
description:
|
|
- Port to listen for SSH
|
|
type: int
|
|
default: 222
|
|
|
|
forgejo_db_username:
|
|
description:
|
|
- Name of the user in the database
|
|
default: forgejo
|
|
|
|
forgejo_db_password:
|
|
description:
|
|
- Password of the user in the database
|
|
required: true
|
|
|
|
forgejo_db_database:
|
|
description:
|
|
- Name of the database
|
|
default: forgejo
|
|
|
|
forgejo_mailer:
|
|
description:
|
|
- Configure the mailer to send e-mail notifications
|
|
- Define a `enabled` key with a boolean to enable the mailer
|
|
- Define a `from` key with the source e-mail address
|
|
- See [Email setup](https://forgejo.org/docs/latest/admin/setup/email/)
|
|
type: dict
|
|
|
|
forgejo_service:
|
|
description:
|
|
- Configure service settings
|
|
- See [Service](https://forgejo.org/docs/latest/admin/config-cheat-sheet/#service-service)
|
|
type: dict
|
|
|
|
forgejo_manage_iptables:
|
|
description:
|
|
- Configure iptables rules
|
|
type: bool
|
|
default: false
|
|
|
|
forgejo_allowed_sources:
|
|
description:
|
|
- List of IP ranges to allow when `forgejo_manage_iptables` is enabled
|
|
type: list
|
|
|
|
forgejo_runners_version:
|
|
description:
|
|
- Version of the runners
|
|
default: 9.1.1
|
|
|
|
forgejo_runners_config_dir:
|
|
description:
|
|
- Path to the configuration directory of the runners
|
|
type: path
|
|
default: /etc/forgejo-runners
|
|
|
|
forgejo_runners_instance:
|
|
description:
|
|
- URL of the Forgejo instance to register the runners
|
|
|
|
forgejo_runners:
|
|
description:
|
|
- List of runners to configure
|
|
- The key is the name of the repository on the instance
|
|
- The value is a dict with a `token` key and optionally a dict of `labels`
|
|
type: dict
|