Bladeren bron

Some fixes for log mails. duplicate z-push logrotate. missing mysql dep for nextcloud. ensure admin gets all cron mails.

Thomas Buck 5 jaren geleden
bovenliggende
commit
00194e5c25

+ 1
- 1
roles/mailserver/tasks/z-push.yml Bestand weergeven

@@ -87,7 +87,7 @@
87 87
 - name: Configure z-push logrotate
88 88
   copy:
89 89
     src=etc_logrotate_z-push
90
-    dest=/etc/logrotate.d/z-push
90
+    dest=/etc/logrotate.d/z-push.lr
91 91
     owner=root
92 92
     group=root
93 93
     mode=0644

+ 7
- 0
roles/mastodon/tasks/mastodon.yml Bestand weergeven

@@ -206,6 +206,13 @@
206 206
     owner: root
207 207
     group: root
208 208
 
209
+- name: Set mastodon cron mail target
210
+  cron:
211
+    name: MAILTO
212
+    env: yes
213
+    value: "{{ admin_email }}"
214
+    user: mastodon
215
+
209 216
 - name: Media cleanup cronjob
210 217
   cron:
211 218
     name: "media cleanup"

+ 7
- 0
roles/news/tasks/selfoss.yml Bestand weergeven

@@ -113,6 +113,13 @@
113 113
   notify: restart apache
114 114
   with_items: "{{ virtual_domains | json_query('[*].name') }}"
115 115
 
116
+- name: Set selfoss cron mail target
117
+  cron:
118
+    name: MAILTO
119
+    env: yes
120
+    value: "{{ admin_email }}"
121
+    user: www-data
122
+
116 123
 - name: Install selfoss cronjob
117 124
   cron:
118 125
     name="selfoss"

+ 8
- 0
roles/nextcloud/tasks/nextcloud.yml Bestand weergeven

@@ -15,6 +15,7 @@
15 15
     - php-imagick
16 16
     - php-redis
17 17
     - php-mcrypt
18
+    - php-mysql
18 19
     - php-xml
19 20
     - php-zip
20 21
     - php-mbstring
@@ -122,6 +123,13 @@
122 123
   notify: restart apache
123 124
   with_items: "{{ virtual_domains | json_query('[*].name') }}"
124 125
 
126
+- name: Set nextcloud cron mail target
127
+  cron:
128
+    name: MAILTO
129
+    env: yes
130
+    value: "{{ admin_email }}"
131
+    user: www-data
132
+
125 133
 - name: Install NextCloud cronjob
126 134
   cron:
127 135
     name="nextcloud"

+ 14
- 0
roles/webmail/files/etc_logrotate.d_roundcube-core Bestand weergeven

@@ -0,0 +1,14 @@
1
+/var/log/roundcube/errors
2
+/var/log/roundcube/sendmail
3
+/var/log/roundcube/session
4
+/var/log/roundcube/userlogins
5
+{
6
+  create 0640 www-data www-data
7
+  su www-data www-data
8
+  compress
9
+  delaycompress
10
+  missingok
11
+  notifempty
12
+  rotate 52
13
+  weekly
14
+}

+ 7
- 0
roles/webmail/tasks/roundcube.yml Bestand weergeven

@@ -38,6 +38,13 @@
38 38
     group=www-data
39 39
     mode=0644
40 40
 
41
+- name: Install roundcube logrotate
42
+  copy: src=etc_logrotate.d_roundcube-core
43
+    dest=/etc/logrotate.d/roundcube-core
44
+    owner=root
45
+    group=root
46
+    mode=0644
47
+
41 48
 - name: Set server parameter for Roundcube
42 49
   debconf:
43 50
     name: roundcube-core

Laden…
Annuleren
Opslaan