Browse Source

small fixes for monit, nextcloud, limesurvey

Thomas Buck 2 years ago
parent
commit
da2578d190

+ 1
- 0
roles/limesurvey/tasks/limesurvey.yml View File

@@ -6,6 +6,7 @@
6 6
     packages:
7 7
     - php
8 8
     - libapache2-mod-php
9
+    - unzip
9 10
   tags:
10 11
     - dependencies
11 12
 

+ 1
- 1
roles/monitoring/tasks/monit.yml View File

@@ -249,7 +249,7 @@
249 249
   when: postfix_config_file.stat.exists == True
250 250
 
251 251
 - name: Copy sshd monit service config files into place
252
-  copy: src=etc_monit_conf.d_sshd dest=/etc/monit/conf.d/ssh
252
+  copy: src=etc_monit_conf.d_sshd dest=/etc/monit/conf.d/sshd
253 253
   notify: restart monit
254 254
   when: sshd_config_file.stat.exists == True
255 255
 

+ 1
- 1
roles/nextcloud/defaults/main.yml View File

@@ -4,7 +4,7 @@ nextcloud_domain: "{{ nextcloud_subdomain }}.{{ domain }}"
4 4
 # When you increase the version, run this manually after installing / upgrading:
5 5
 #  cd /var/www/nextcloud
6 6
 #  sudo -u www-data php occ upgrade
7
-nextcloud_version: "15.0.5"
7
+nextcloud_version: "22.2.0"
8 8
 
9 9
 nextcloud_admin_username: "{{ main_user_name }}"
10 10
 nextcloud_admin_password: "{{ lookup('password', secret + '/' + 'nextcloud_admin_password length=32') }}"

+ 12
- 2
roles/nextcloud/tasks/nextcloud.yml View File

@@ -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:

Loading…
Cancel
Save