Otobo Ansible role
https://otobo.io/en/
- Jinja 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .gitea/workflows | ||
| defaults | ||
| handlers | ||
| meta | ||
| tasks | ||
| templates | ||
| .gitignore | ||
| CHANGELOG.md | ||
| LICENSE | ||
| README.md | ||
OTOBO
Deploys OTOBO — an open-source ticket system — as a Docker Compose stack. The stack consists of MariaDB (database), OTOBO (web and daemon), Elasticsearch, Redis, MinIO, and an optional nginx HTTPS proxy.
Requirements
- Docker >= 24
community.dockerAnsible collection >= 5.2.0
Variables
| Variable | Default | Description |
|---|---|---|
otobo_instance |
otobo |
Unique instance name. Used as Compose project name and container name prefix. |
otobo_docker_path |
/docker/otobo |
Host path for the rendered Compose file. |
otobo_data_path |
/data/otobo |
Host path for persistent data (MariaDB, OTOBO, Elasticsearch, MinIO). |
otobo_url |
"" |
Domain for Traefik routing. Mutually exclusive with otobo_port. |
otobo_port |
8443 |
Host port exposed via the bundled nginx HTTPS proxy. Set to false to route via Traefik instead. |
otobo_ssl_certificate |
"" |
SSL certificate path inside the nginx container. Required when otobo_port is set. |
otobo_ssl_certificate_key |
"" |
SSL certificate key path inside the nginx container. Required when otobo_port is set. |
otobo_db_root_password |
~ |
MariaDB root password. Required. |
otobo_db_name |
otobo |
Application database name. |
otobo_db_user |
otobo |
Application database user. |
otobo_db_password |
~ |
Application database user password. Required. |
otobo_admin_password |
~ |
Initial password for the root@localhost superuser account. Required. |
otobo_timezone |
Europe/Berlin |
System and default user timezone (IANA name). |
otobo_db_query_cache_size |
33554432 |
MariaDB query cache size, in bytes. |
otobo_elasticsearch_memory |
512m |
Elasticsearch JVM heap size (-Xms/-Xmx). |
otobo_web_option |
"" |
OTOBO web server mode: deployment, development, or shotgun. Leave empty for the image default. |
otobo_db_image |
mariadb:lts-noble |
MariaDB image. |
otobo_image |
rotheross/otobo:latest-11_0 |
OTOBO image, used for both the web and daemon services. |
otobo_elasticsearch_image |
rotheross/otobo-elasticsearch:latest-11_0 |
Elasticsearch image. |
otobo_redis_image |
redis:8-bookworm |
Redis image. |
otobo_minio_image |
minio/minio |
MinIO image. |
otobo_nginx_image |
rotheross/otobo-nginx-webproxy:latest-11_0 |
nginx HTTPS proxy image. Only used when otobo_port is set. |
otobo_uninstall |
false |
Stops and removes all containers and the compose directory. |
otobo_purge |
false |
Also removes otobo_data_path. Requires otobo_uninstall: true. Irreversible. |
Usage
Minimal setup with the bundled nginx proxy:
otobo_db_root_password: "{{ vault_otobo_db_root_password }}"
otobo_port: 8443
otobo_ssl_certificate: /etc/nginx/ssl/cert.pem
otobo_ssl_certificate_key: /etc/nginx/ssl/key.pem
Place the certificate and key files at {{ otobo_docker_path }}/ssl/ on the target host before deploying — they are bind-mounted read-only into the nginx container.
Traefik
Setting otobo_port: false (and otobo_url) disables the bundled nginx proxy and instead attaches the web service to the external traefik_web network with routing labels:
otobo_port: false
otobo_url: "otobo.example.com"
- HTTPS router on the
websecureentrypoint forotobo_url, with TLS via thedefaultcertificate resolver - Routes to the OTOBO web UI on container port 5000
Uninstall
To stop and remove all containers and the compose directory (keeps data):
otobo_uninstall: true
To also wipe all persistent data (irreversible):
otobo_uninstall: true
otobo_purge: true
Notes
otobo_db_root_passwordshould be stored in Ansible Vault.- Exactly one of
otobo_urlorotobo_portmust be set — the role asserts this before deploying. - Data directories are bind-mounted under
otobo_data_pathwith the correct owners for each service: MariaDB (uid/gid 999), OTOBO (uid/gid 1000), Elasticsearch (uid 1000, gid 0). - MinIO publishes ports
9000and9001directly on the host regardless of the routing mode.