dubzland.nextcloud
Dubzland: Nextcloud
Installs and configures the Nextcloud personal cloud.
Requirements
None
Role Variables
Available variables are listed below, along with their default values (see
defaults/main.yml for more info):
dubzland_nextcloud_version
dubzland_nextcloud_version: "{{ _dubzland_nextcloud_version }}"
Version of Nextcloud to install. Defaults to the most recent version of Nextcloud compatible with the version of PHP available in the platform's package manager.
dubzland_nextcloud_root
dubzland_nextcloud_root: "/var/www/nextcloud"
Root directory to contain the Nextcloud install.
dubzland_nextcloud_data_dir
dubzland_nextcloud_data_dir: "/srv/nextcloud/data"
Directory where Nextcloud will store user data.
dubzland_nextcloud_db_type
dubzland_nextcloud_db_type: sqlite3
Type of database. Allowed options are sqlite3, pgsql and mysql.
dubzland_nextcloud_db_host
dubzland_nextcloud_db_host: localhost
Host running the database Nextcloud will use. Only applicable for pgsql and
mysql db_type.
dubzland_nextcloud_db_name
dubzland_nextcloud_db_name: nextcloud
Name of the Nextcloud database. The installation process will create this database if it does not exist.
dubzland_nextcloud_db_username / dubzland_nextcloud_db_password
dubzland_nextcloud_db_username: nextcloud
dubzland_nextcloud_db_password: nextcloud
Credentials used to connect to the database. This user will need the CREATEDB role.
dubzland_nextcloud_admin_username / dubzland_nextcloud_admin_password
dubzland_nextcloud_admin_username: admin
dubzland_nextcloud_admin_password: nextcloud
Credentials to configure for the Nextcloud administrative user.
dubzland_nextcloud_web_user / dubzland_nextcloud_web_group
dubzland_nextcloud_web_user: www-data
dubzland_nextcloud_web_group: www-data
System user who should own all Nextcloud application and data files.
dubzland_nextcloud_cron_frequency
dubzland_nextcloud_cron_frequency: '5'
How many minutes should elapse between running the cron maintenance job.
dubzland_nextcloud_url
dubzland_nextcloud_url: https://nextcloud.example.com
URL where to Nextcloud instance will be accessible.
dubzland_nextcloud_trusted_domains
dubzland_nextcloud_trusted_domains:
- localhost
- nextcloud.example.com
List of domains allowed to connect to this Nextcloud instance.
dubzland_nextcloud_settings
dubzland_nextcloud_settings: []
Any additional settings to configure (mail server, etc). See defaults/main.yml for examples.
dubzland_nextcloud_apps
dubzland_nextcloud_apps: []
Any apps (and their settings) to automatically configure in Nextcloud. See defaults/main.yml for examples.
Dependencies
None.
Example Playbook
- hosts: nextcloud
become: yes
roles:
- role: dubzland.nextcloud
License
MIT
