Bläddra i källkod

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

Import carddav database schema
Luke Cyca 10 år sedan
förälder
incheckning
cb6a26a626
2 ändrade filer med 7 tillägg och 0 borttagningar
  1. 6
    0
      roles/webmail/handlers/main.yml
  2. 1
    0
      roles/webmail/tasks/roundcube.yml

+ 6
- 0
roles/webmail/handlers/main.yml Visa fil

@@ -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 Visa fil

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

Laddar…
Avbryt
Spara