# Ansible playbook for Nextcloud with MySQL/PostgreSQL This playbook downloads and installs Nextcloud and its required database. The database options are either MySQL or PostgreSQL The default values are given in [vars.yml](/vars.yml) and it should be modified accordingly. #### [Variables File](/vars.yml) domainname: Domain name nc_admin_username: Nextcloud dmin username nc_admin_pass: Nextcloud admin password 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 #### 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 ldapBaseDN: Base DN for LDAP. This role uses freeipa dn structure hence the default value is cn=users,cn=accounts,dc=example,dc=com. Inorder to change the default Base DN value modify roles/nextcloud/tasks/main.yml 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