Kaynağa Gözat

Merge pull request #179 from jplock/jp-carddav-db

Import carddav database schema
Luke Cyca 10 yıl önce
ebeveyn
işleme
cb6a26a626

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

@@ -0,0 +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
+
5
+- name: import sql carddav
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
- 0
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:

Loading…
İptal
Kaydet