Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #179 from jplock/jp-carddav-db
Import carddav database schema
  • Loading branch information
lukecyca committed Mar 4, 2014
2 parents 916f3ab + 057a8c8 commit cb6a26a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/webmail/handlers/main.yml
@@ -0,0 +1,6 @@
- name: reconfigure roundcube db
action: shell dbconfig-generate-include /etc/dbconfig-common/roundcube.conf /etc/roundcube/debian-db.php
notify: import sql carddav

- name: import sql carddav
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 change: 1 addition & 0 deletions roles/webmail/tasks/roundcube.yml
Expand Up @@ -7,6 +7,7 @@

- name: Configure Roundcube database
template: src=etc_dbconfig-common_roundcube.conf.j2 dest=/etc/dbconfig-common/roundcube.conf group=root owner=root force=yes
notify: reconfigure roundcube db

- name: Download carddav plugin release
get_url:
Expand Down

0 comments on commit cb6a26a

Please sign in to comment.