main.yml 3.63 KB
Newer Older
Aalaesar's avatar
Aalaesar committed
1
---
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# defaults file for nextcloud
# [DOWNLOAD]
  # An URL will be generated following naming rules used by nextcloud's repository
  # Not following this rules correctly will make the role unable to download nextcloud.
nextcloud_version_channel: "releases" # mandatory # releases | prereleases | daily
    # channel releases requires version_full.
    # channel prereleases requires version_full. Optional: version_special.
    # channel daily requires requires version_full & version_special.
nextcloud_get_latest: true # mandatory # specify if the latest archive should be downloaded.
    # Override generated file name for channels: releases | daily.
    # optional : version_major.
# nextcloud_version_major: 10 # (9 | 10 | 11| ..) for releases |  for daily : (master | stable9 | stable10 | ...)
# nextcloud_version_full: "10.0.3" # full version string
# nextcloud_version_special: "" #  For prereleases: "RCn|beta" | for daily "YYYY-MM-DD"
nextcloud_repository: "https://download.nextcloud.com/server" # Domain URL where to download Nextcloud.
nextcloud_archive_format: "zip" # zip | tar.bz2
18
# nextcloud_full_url: "https://h2g2.com/downloads/42/my_nextcloud.zip" # specify directly a full URL to the archive if you don't like rules.
19
20
21


# [CONFIG]
Hispanico's avatar
Hispanico committed
22
23
24
25
nextcloud_trusted_domain:
  - "{{ ansible_fqdn }}"
  - "{{ ansible_default_ipv4.address }}"

26
27
nextcloud_ipv6: false

Hispanico's avatar
Hispanico committed
28
29
nextcloud_trusted_proxies: []

30
nextcloud_instance_name: "{{ nextcloud_trusted_domain | first }}"
31
32

nextcloud_install_websrv: true
33
nextcloud_websrv: "apache2" # "apache2" | "nginx"
34
nextcloud_disable_websrv_default_site: false
35
nextcloud_websrv_template: "templates/{{nextcloud_websrv}}_nc.j2"
Aalaesar's avatar
Aalaesar committed
36
nextcloud_webroot: "/opt/nextcloud"
37
nextcloud_data_dir: "/var/ncdata"
Aalaesar's avatar
Aalaesar committed
38
39
40
nextcloud_admin_name: "admin"
# nextcloud_admin_pwd: "secret"

Hispanico's avatar
Hispanico committed
41
nextcloud_install_redis_server: true
42
43
44
nextcloud_redis_host: '/var/run/redis/redis.sock'
nextcloud_redis_port: 0

Hispanico's avatar
Hispanico committed
45
nextcloud_redis_settings:
46
47
  - { name: 'redis host', value: '"{{ nextcloud_redis_host }}"' }
  - { name: 'redis port', value: "{{ nextcloud_redis_port }}" }
Hispanico's avatar
Hispanico committed
48
49
50
51
52
53
54
55
56
57
58
59
60
  - { name: 'memcache.locking', value: '\OC\Memcache\Redis' }

nextcloud_background_cron: True

## Custom nextcloud settings
## https://docs.nextcloud.com/server/12/admin_manual/configuration_server/config_sample_php_parameters.html
nextcloud_config_settings:
  - { name: 'overwrite.cli.url', value: 'https://{{ nextcloud_trusted_domain | first }}' }
  - { name: 'memcache.local', value: '\OC\Memcache\APCu' }
  - { name: 'open_basedir', value: '/dev/urandom' }
  - { name: 'mysql.utf8mb4', value: 'true' }
  - { name: 'updater.release.channel', value: 'production' } # production | stable | daily | beta

Aalaesar's avatar
Aalaesar committed
61
# [DATABASE]
62
nextcloud_install_db: true
63
nextcloud_db_host: "127.0.0.1"
64
nextcloud_db_backend: "mysql" # "mysql"/"mariadb" | "pgsql"
Aalaesar's avatar
Aalaesar committed
65
66
67
68
nextcloud_db_name: "nextcloud"
nextcloud_db_admin: "ncadmin"
# nextcloud_db_pwd: "secret"

69
# [TLS] parameters used in the apache2 & nginx templates
70
71
##  max file's size allowed to be uploaded on the server
nextcloud_max_upload_size: 512m # in Byte or human readable size notation (g|m|k)
72
nextcloud_install_tls: true
73
nextcloud_tls_enforce: true
74
nextcloud_mozilla_modern_ssl_profile: false # when false, intermediate profile is used
75
nextcloud_tls_cert_method: "self-signed" # "self-signed" | "signed" | "installed"
76
nextcloud_tls_dhparam: "/etc/ssl/dhparam.pem"
77
nextcloud_hsts: false # recommended >= 15552000
78
79
# nextcloud_tls_cert: /path/to/cert
# nextcloud_tls_cert_key: /path/to/cert/key
80
# nextcloud_tls_cert_chain: /path/to/cert/chain
81
82
# nextcloud_tls_src_cert: /path/to/cert
# nextcloud_tls_src_cert_key: /path/to/cert/key
83

84
# [APPS]
85
nextcloud_apps: {}
Aalaesar's avatar
Aalaesar committed
86
87

# [SYSTEM]
Armando Lüscher's avatar
Armando Lüscher committed
88
#nextcloud_mysql_root_pwd: "secret"
89
90

php_custom: false