1.4 KiB
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. 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_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