Nextcloud

Description

This Ansible role provisions a production-grade Nextcloud deployment using Docker Compose. It includes support for LDAP and OIDC authentication, Redis caching, secure configuration management, and declarative plugin control via occ. The setup is modular and integrates cleanly into larger infrastructure environments.

Overview

The role ensures consistent deployments, full automation, and secure configuration injection into config.php using additive includes. Authentication is handled through LDAP and OIDC (e.g., via Keycloak), and backup/recovery operations are fully supported.

Purpose

To automate the deployment of secure, extensible, and production-ready Nextcloud instances using Docker and Ansible.

Features

  • Dockerized Nextcloud (PHP-FPM, Nginx, Cron, Redis)

  • Templated Nginx configuration (internal and external)

  • Automated certificate and HTTPS proxy integration

  • Healthcheck support

  • Backup & recovery integration

  • IAM & SOO

  • Hundreds of integrated plugins

External Resources