Kaynağa Gözat

Properly reconfigure the roundcube database and import the carddav tables

Justin Plock 10 yıl önce
ebeveyn
işleme
057a8c8872
No account linked to committer's email address

+ 5
- 1
roles/webmail/handlers/main.yml Dosyayı Görüntüle

@@ -1,2 +1,6 @@
1
+- name: reconfigure roundcube db
2
+  action: shell dbconfig-generate-include /etc/dbconfig-common/roundcube.conf /etc/roundcube/debian-db.php
3
+  notify: import sql carddav
4
+
1 5
 - name: import sql carddav
2
-  action: shell PGPASSWORD='{{ webmail_db_password }}' psql -h localhost -d {{ webmail_db_database }} -U {{ webmail_db_username }} -f /usr/share/roundcube/plugins/carddav/dbinit/postgres.sql --set ON_ERROR_STOP=1
6
+  action: shell PGPASSWORD='{{ webmail_db_password }}' psql -h localhost -d {{ webmail_db_database }} -U {{ webmail_db_username }} -f /usr/share/roundcube/plugins/carddav/dbinit/postgres.sql --set ON_ERROR_STOP=1

+ 1
- 1
roles/webmail/tasks/roundcube.yml Dosyayı Görüntüle

@@ -7,6 +7,7 @@
7 7
 
8 8
 - name: Configure Roundcube database
9 9
   template: src=etc_dbconfig-common_roundcube.conf.j2 dest=/etc/dbconfig-common/roundcube.conf group=root owner=root force=yes
10
+  notify: reconfigure roundcube db
10 11
 
11 12
 - name: Download carddav plugin release
12 13
   get_url:
@@ -21,7 +22,6 @@
21 22
 
22 23
 - name: Copy carddav plugin files to /usr/share/roundcube/plugins/carddav
23 24
   shell: cp -R rcmcarddav-carddav_{{ carddav_version }}/* /usr/share/roundcube/plugins/carddav/ chdir=/root
24
-  notify: import sql carddav
25 25
 
26 26
 - name: Link carddav plugin into /var/lib/roundcube/plugins
27 27
   file: state=link src=/usr/share/roundcube/plugins/carddav dest=/var/lib/roundcube/plugins/carddav force=yes

Loading…
İptal
Kaydet