1.9 KiB
Ansible playbook for Nextcloud
This playbook download and install Nextcloud along with mail and collabora office integration. The database options are MySQL or PostgreSQL. Default values are given in variables file and it must be modified accordingly.
Variables File
domainname: Domain name
nc_admin_username: Nextcloud dmin username
nc_admin_pass: Nextcloud admin password
nc_app_list: List of apps to be installed in nextcloud
nc_root: Root folder for Nextcloud.
nc_trusted_domains: Domains/IP for accessing nextcloud. This is in dictionary format. The format for adding multiple domains is given below
nc_trusted_domains:
0: example.com
1: example2.com
nc_version: Nextcloud version which is to be downloaded
Collabora office integration
collabora_nc_apps: Apps to be installed for collabora office integration
collabora_packages: Debian packages to be installed
collabora_server: Host running coolwsd [Collabora]. Default is https://example.com:8443
Database configuration
nc_db: Database software used. Currently supports MySQL [mysql] and PostgreSQL [pgsql]
nc_db_host: Host running database.
nc_db_name: Name of database that is used for storing nextcloud data
nc_db_user: Name of role/database user for accessing the database
nc_db_pass: Role/Database user password
LDAP configration
ldapsuffix: Creates suffix [dc=example,dc=com] from domain [example.com]. This variable is registered by nextcloud role Line 16
ldapBaseDN: Base DN for LDAP. This role uses freeipa dn structure hence the default value is cn=users,cn=accounts,dc=example,dc=com. Variable is registered by nextcloud role Line 24.
ldapAgentName: DN of LDAP user that is used for ldap connection.
ldapAgentPassword: Password for the LDAP user
ldapHost: Host running ldap
ldapPort: Port for connecting to LDAP