|
@@ -14,7 +14,6 @@
|
14
|
14
|
- php-imap
|
15
|
15
|
- php-imagick
|
16
|
16
|
- php-redis
|
17
|
|
- - php-mcrypt
|
18
|
17
|
- php-mysql
|
19
|
18
|
- php-xml
|
20
|
19
|
- php-zip
|
|
@@ -28,6 +27,17 @@
|
28
|
27
|
tags:
|
29
|
28
|
- dependencies
|
30
|
29
|
|
|
30
|
+- name: Install NextCloud dependencies
|
|
31
|
+ apt:
|
|
32
|
+ name: "{{ packages }}"
|
|
33
|
+ state: present
|
|
34
|
+ vars:
|
|
35
|
+ packages:
|
|
36
|
+ - php-mcrypt
|
|
37
|
+ tags:
|
|
38
|
+ - dependencies
|
|
39
|
+ when: ansible_distribution_version == '9'
|
|
40
|
+
|
31
|
41
|
- name: Create NextCloud temp directory
|
32
|
42
|
file: path=/root/nextcloud state=directory
|
33
|
43
|
|
|
@@ -108,7 +118,7 @@
|
108
|
118
|
lineinfile:
|
109
|
119
|
path: /var/www/nextcloud/config/config.php
|
110
|
120
|
insertafter: 'instanceid'
|
111
|
|
- line: " 'trusted_domains' => array ('localhost', {{ virtual_domains | json_query('[*].name') | map('regex_replace', '(.*)', \"'cloud.\\1'\") | join(', ') }}),"
|
|
121
|
+ line: " 'trusted_domains' => array ('localhost', {{ virtual_domains | json_query('[*].name') | map('regex_replace', '^(.*)$', \"'\" + nextcloud_subdomain + \".\\1'\") | join(', ') }}),"
|
112
|
122
|
|
113
|
123
|
- name: Create the Apache sites config files
|
114
|
124
|
template:
|