暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

roundcube.yml 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. - name: Install Roundcube
  2. apt: pkg={{ item }} state=latest
  3. with_items:
  4. - roundcube
  5. - roundcube-plugins
  6. - roundcube-pgsql
  7. - name: Configure Roundcube database
  8. template: src=etc_dbconfig-common_roundcube.conf.j2 dest=/etc/dbconfig-common/roundcube.conf group=root owner=root force=yes
  9. - name: Download carddav plugin release
  10. get_url:
  11. url=https://github.com/blind-coder/rcmcarddav/archive/carddav_{{ carddav_version }}.tar.gz
  12. dest=/root/carddav_{{ carddav_version }}.tar.gz
  13. - name: Decompress carddav plugin source
  14. command: tar xzf carddav_{{ carddav_version }}.tar.gz chdir=/root creates=/root/rcmcarddav-carddav_{{ carddav_version }}
  15. - name: Create /usr/share/roundcube/plugins/carddav
  16. file: state=directory path=/usr/share/roundcube/plugins/carddav
  17. - name: Copy carddav plugin files to /usr/share/roundcube/plugins/carddav
  18. shell: cp -R rcmcarddav-carddav_{{ carddav_version }}/* /usr/share/roundcube/plugins/carddav/ chdir=/root
  19. - name: Link carddav plugin into /var/lib/roundcube/plugins
  20. shell: ln -s /usr/share/roundcube/plugins/carddav chdir=/var/lib/roundcube/plugins
  21. - name: Remove downloaded, temporary carddav plugin source files
  22. shell: rm -rf rcmcarddav-carddav_* carddav_* chdir=/root
  23. - name: Configure the Apache HTTP server for roundcube
  24. template: src=etc_apache2_sites-available_roundcube.j2 dest=/etc/apache2/sites-available/roundcube group=www-data owner=www-data force=yes
  25. - name: Configure roundcube
  26. copy: src=etc_roundcube_main.inc.php dest=/etc/roundcube/main.inc.php group=www-data owner=root mode=640 force=yes
  27. - name: Configure roundcube's managesieve plugin
  28. copy: src=usr_share_roundcube_plugins_managesieve_config.inc.php dest=/usr/share/roundcube/plugins/managesieve/config.inc.php group=www-data owner=root mode=640 force=yes
  29. - name: Configure roundcube's carddav plugin
  30. copy: src=usr_share_roundcube_plugins_carddav_config.inc.php dest=/usr/share/roundcube/plugins/carddav/config.inc.php group=www-data owner=root mode=640 force=yes
  31. - name: Copy global default sieve rules
  32. copy: src=etc_roundcube_global.sieve dest=/etc/roundcube/global.sieve owner=root group=www-data mode=640
  33. - name: Enable roundcube site
  34. command: a2ensite roundcube creates=/etc/apache2/sites-enabled/roundcube
  35. notify: restart apache