summaryrefslogtreecommitdiff
path: root/roles/apps/nextcloud/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/apps/nextcloud/tasks')
-rw-r--r--roles/apps/nextcloud/tasks/main.yml35
1 files changed, 27 insertions, 8 deletions
diff --git a/roles/apps/nextcloud/tasks/main.yml b/roles/apps/nextcloud/tasks/main.yml
index c9a9061c..12b15abc 100644
--- a/roles/apps/nextcloud/tasks/main.yml
+++ b/roles/apps/nextcloud/tasks/main.yml
@@ -65,7 +65,7 @@
password: "!"
- name: create nextcloud database subdirectory
- loop: "{{ nextcloud_instances | dict2items}}"
+ loop: "{{ nextcloud_instances | dict2items }}"
loop_control:
label: "{{ item.key }} ({{ item.value.database.type }})"
file:
@@ -75,6 +75,27 @@
state: directory
+- name: add group for nextcloud redis
+ group:
+ name: nc-redis
+ gid: "{{ nextcloud_redis_gid }}"
+
+- name: add user for nextcloud redis
+ user:
+ name: nc-redis
+ uid: "{{ nextcloud_redis_uid }}"
+ group: nc-redis
+ password: "!"
+
+- name: create nextcloud database subdirectory
+ loop: "{{ nextcloud_instances | list }}"
+ file:
+ path: "{{ nextcloud_base_path }}/{{ item }}/redis"
+ owner: "{{ nextcloud_redis_uid }}"
+ group: "{{ nextcloud_redis_gid }}"
+ state: directory
+
+
- name: create auxiliary config directory
loop: "{{ nextcloud_instances | list }}"
file:
@@ -204,12 +225,10 @@
** Go to https://{{ item.value.hostnames[0] }} and finalize the
** installation. After that run the following commands:
**
- ** $ nextcloud-occ {{ item.key }} app:disable richdocumentscode
- ** $ nextcloud-occ {{ item.key }} app:remove richdocumentscode
- **
- ** Also please add the following option to the file
- ** "{{ nextcloud_base_path }}/{{ item.key }}/nextcloud/config/config.php"
- **
- ** 'default_phone_region' => 'at',
+ ** $ nextcloud-occ {{ item.key }} config:system:set default_phone_region --value='at'
+ ** $ nextcloud-occ {{ item.key }} config:system:set redis host --value '127.0.0.1'
+ ** $ nextcloud-occ {{ item.key }} config:system:set redis port --type integer --value 6379
+ ** $ nextcloud-occ {{ item.key }} config:system:set redis timeout --type float --value 0.0
+ ** $ nextcloud-occ {{ item.key }} config:system:set redis password
**
****************************************