Browse Source

Import carddav database schema. I'm unable to run this against the vagrant VM as the webmail_db_password seems to be automatically generated.

Justin Plock 10 years ago
parent
commit
bd9b22f603
No account linked to committer's email address
2 changed files with 3 additions and 0 deletions
  1. 2
    0
      roles/webmail/handlers/main.yml
  2. 1
    0
      roles/webmail/tasks/roundcube.yml

+ 2
- 0
roles/webmail/handlers/main.yml View File

@@ -0,0 +1,2 @@
1
+- 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

+ 1
- 0
roles/webmail/tasks/roundcube.yml View File

@@ -21,6 +21,7 @@
21 21
 
22 22
 - name: Copy carddav plugin files to /usr/share/roundcube/plugins/carddav
23 23
   shell: cp -R rcmcarddav-carddav_{{ carddav_version }}/* /usr/share/roundcube/plugins/carddav/ chdir=/root
24
+  notify: import sql carddav
24 25
 
25 26
 - name: Link carddav plugin into /var/lib/roundcube/plugins
26 27
   file: state=link src=/usr/share/roundcube/plugins/carddav dest=/var/lib/roundcube/plugins/carddav force=yes

Loading…
Cancel
Save