This role installs a NextCloud or ownCloud instance on a specified host, either with SQLite, MySQL, MariaDB or PostgreSQL database as a backend and an Nginx or Apache webserver as a frontend.

Nextcloud will be installed using the upstream tarballs. ownCloud will be installed as package coming directly from upstream.

Note that Nginx is not officially supported by ownCloud nor NextCloud but it is community supported and should work without problems. Apache is supported by the role but not yet used by default and not very well tested.


  • LDAP setup.
  • In memory caching using Redis for file locking and APCu.
  • Theming support (only tested with ownCloud 10).
  • Extensive configuration options via Ansible’s inventory.
  • Fully automated ownCloud security updates. Not yet enabled by default nor tested with ownCloud 10.


This role requires at least Ansible v2.1.4. To install it, run:

ansible-galaxy install debops.owncloud