OpenProject Ansible Role https://www.openproject.org/
This repository has been archived on 2026-10-13. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-05-26 11:24:55 +02:00
.gitea/workflows feat: added initial version of the role 2026-05-25 23:36:36 +02:00
defaults feat: added ldap + oidc integration 2026-05-26 11:16:45 +02:00
meta feat: added initial version of the role 2026-05-25 23:36:36 +02:00
tasks fix: fixed small error with oidc 2026-05-26 11:24:55 +02:00
templates feat: added ldap + oidc integration 2026-05-26 11:16:45 +02:00
.gitignore feat: added initial version of the role 2026-05-25 23:36:36 +02:00
CHANGELOG.md fix: fixed small error with oidc 2026-05-26 11:24:55 +02:00
LICENSE feat: added initial version of the role 2026-05-25 23:36:36 +02:00
README.md Prettified Code! 2026-05-26 09:17:58 +00:00

OpenProject

Deploys an OpenProject instance via Docker Compose, using Traefik as a reverse proxy.

Requirements

  • Docker
  • community.docker Ansible collection (>= 5.2.0)

Variables

Variable Default Description
project_instance openproject Unique instance name. Used as Compose project name and container name prefix. Change when running multiple instances on the same host.
project_data_path /data/project Host path for persistent data (database, uploaded assets).
project_docker_path /docker/project Host path for the compose.yml file.
project_version 17-slim OpenProject image tag. Pin to a specific version in production.
project_hocuspocus_version 17.4.0 Hocuspocus (collaborative editing) image tag. Should match the OpenProject major version.
project_db_version 17 PostgreSQL major version.
project_memcached_version 1.6 Memcached image tag.
project_db_user postgres PostgreSQL username.
project_db_name openproject PostgreSQL database name.
project_db_password ~ Required. PostgreSQL password.
project_secret_key_base ~ Required. Rails secret key base. Changing this invalidates all sessions. Generate with: `head /dev/urandom \ tr -dc A-Za-z0-9 \ head -c 32`
project_collaborative_secret ~ Required. Shared secret between OpenProject and Hocuspocus.
project_admin_password ~ Initial admin password. When set, overrides the default admin password. The admin is still prompted to change it on first login.
project_rails_threads_min 4 Minimum Rails threads per web worker. Also controls the database connection pool floor.
project_rails_threads_max 16 Maximum Rails threads per web worker.
project_domain ~ Public domain OpenProject runs on (no protocol prefix). When set, attaches web and hocuspocus to the traefik_web network, adds Traefik HTTPS routing labels, and enables HTTPS, HSTS, and wss:// for collaborative editing.
project_mail_conf ~ SMTP mail configuration dict. When set, enables outbound email. See Mail below.
project_imap_conf ~ Incoming email (IMAP) configuration dict. When set, enables reply-by-email and email-to-task. See IMAP below.
project_ldap_conf ~ LDAP authentication configuration dict. When set, seeds an LDAP connection. See LDAP below.
project_oidc_providers ~ OIDC provider configuration dict. When set, enables SSO login. See OIDC below.
project_disable_password_login false When true, disables local username/password login. Requires at least one provider in project_oidc_providers.
project_uninstall false Stops and removes all containers and the compose directory.
project_purge false Also removes the data directory including the database and uploads. Requires project_uninstall: true. Irreversible.

Usage

Minimal production setup:

project_domain: project.example.com
project_db_password: "{{ vault_project_db_password }}"
project_secret_key_base: "{{ vault_project_secret_key_base }}"
project_collaborative_secret: "{{ vault_project_collaborative_secret }}"

Mail

When project_mail_conf is set, outbound email is enabled (invites, notifications, password resets, etc.).

Required keys: host, username, password

Optional keys:

Key Default Description
port 587 SMTP port.
domain "" HELO domain sent to the SMTP server.
authentication plain SMTP authentication method.
starttls true Whether to use STARTTLS.
address username From address for outbound mail.

Example:

project_mail_conf:
  host: smtp.example.com
  username: apikey
  password: "{{ vault_project_smtp_password }}"
  address: openproject@example.com

LDAP

When project_ldap_conf is set, an LDAP connection is seeded on first deploy. LDAP authentication is available in all OpenProject editions without a license.

Required keys: name, host, bind_dn, bind_password, base_dn

Optional keys:

Key Default Description
port 389 LDAP server port. Use 636 for LDAPS.
security plain_ldap TLS mode: plain_ldap, simple_tls (LDAPS), or start_tls.
sync_users false Automatically create OpenProject users on first LDAP login.
login_attribute uid LDAP attribute used as the OpenProject username. Use sAMAccountName for Active Directory.
mail_attribute mail LDAP attribute for email address.
firstname_attribute givenName LDAP attribute for first name.
lastname_attribute sn LDAP attribute for last name.

Example with Active Directory:

project_ldap_conf:
  name: ldap
  host: ad.example.com
  port: 389
  bind_dn: cn=openproject,cn=Users,dc=example,dc=com
  bind_password: "{{ vault_project_ldap_password }}"
  base_dn: cn=Users,dc=example,dc=com
  login_attribute: sAMAccountName
  sync_users: true

Note: The LDAP connection is seeded once during initial deploy. Changes to project_ldap_conf after the first deploy require manually updating the connection in the OpenProject admin UI, or re-seeding.

IMAP

When project_imap_conf is set, the cron container polls the configured mailbox and:

  • Adds replies to work package notification emails as comments
  • Creates new work packages from emails sent to the mailbox

Requires project_mail_conf to also be configured (outbound notifications must work for reply-by-email to be useful).

Required keys: host, username, password

Optional keys:

Key Default Description
port 993 IMAP port.
ssl true Whether to use SSL.
ssl_verification true Whether to verify the SSL certificate.
folder INBOX Mailbox folder to poll.
check_interval 600 Polling interval in seconds.
project — Default project identifier for work packages created via email.

Example:

project_imap_conf:
  host: imap.example.com
  username: openproject@example.com
  password: "{{ vault_project_imap_password }}"
  project: my-project

OIDC

When project_oidc_providers is set, SSO login is enabled via OpenID Connect. Keys are provider name slugs; values are the provider configuration.

Required keys per provider: identifier, secret, issuer

Optional keys per provider:

Key Description
display_name Label shown on the login button. Defaults to the provider name.

Example with Authentik:

project_oidc_providers:
  authentik:
    display_name: "Sign in with Authentik"
    identifier: "{{ vault_authentik_client_id }}"
    secret: "{{ vault_authentik_client_secret }}"
    issuer: https://auth.example.com/application/o/openproject/

To also disable local password login entirely:

project_disable_password_login: true

Uninstall

To stop and remove all containers and the compose directory:

project_uninstall: true

To also wipe all data including the database and uploaded files (irreversible):

project_uninstall: true
project_purge: true