Browse Source

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

Thomas Buck 5 years ago
parent
commit
00194e5c25

+ 1
- 1
roles/mailserver/tasks/z-push.yml View File

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

+ 7
- 0
roles/mastodon/tasks/mastodon.yml View File

206
     owner: root
206
     owner: root
207
     group: root
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
 - name: Media cleanup cronjob
216
 - name: Media cleanup cronjob
210
   cron:
217
   cron:
211
     name: "media cleanup"
218
     name: "media cleanup"

+ 7
- 0
roles/news/tasks/selfoss.yml View File

113
   notify: restart apache
113
   notify: restart apache
114
   with_items: "{{ virtual_domains | json_query('[*].name') }}"
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
 - name: Install selfoss cronjob
123
 - name: Install selfoss cronjob
117
   cron:
124
   cron:
118
     name="selfoss"
125
     name="selfoss"

+ 8
- 0
roles/nextcloud/tasks/nextcloud.yml View File

15
     - php-imagick
15
     - php-imagick
16
     - php-redis
16
     - php-redis
17
     - php-mcrypt
17
     - php-mcrypt
18
+    - php-mysql
18
     - php-xml
19
     - php-xml
19
     - php-zip
20
     - php-zip
20
     - php-mbstring
21
     - php-mbstring
122
   notify: restart apache
123
   notify: restart apache
123
   with_items: "{{ virtual_domains | json_query('[*].name') }}"
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
 - name: Install NextCloud cronjob
133
 - name: Install NextCloud cronjob
126
   cron:
134
   cron:
127
     name="nextcloud"
135
     name="nextcloud"

+ 14
- 0
roles/webmail/files/etc_logrotate.d_roundcube-core View File

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 View File

38
     group=www-data
38
     group=www-data
39
     mode=0644
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
 - name: Set server parameter for Roundcube
48
 - name: Set server parameter for Roundcube
42
   debconf:
49
   debconf:
43
     name: roundcube-core
50
     name: roundcube-core

Loading…
Cancel
Save