No Description
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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. notify: reconfigure roundcube db
  10. - name: Download carddav plugin release
  11. get_url:
  12. url=https://github.com/blind-coder/rcmcarddav/archive/carddav_{{ carddav_version }}.tar.gz
  13. dest=/root/carddav_{{ carddav_version }}.tar.gz
  14. - name: Decompress carddav plugin source
  15. command: tar xzf carddav_{{ carddav_version }}.tar.gz chdir=/root creates=/root/rcmcarddav-carddav_{{ carddav_version }}
  16. - name: Move carddav plugin files to /usr/share/roundcube/plugins/carddav
  17. command: mv rcmcarddav-carddav_{{ carddav_version }} /usr/share/roundcube/plugins/carddav chdir=/root creates=/usr/share/roundcube/plugins/carddav
  18. - name: Link carddav plugin into /var/lib/roundcube/plugins
  19. file: state=link src=/usr/share/roundcube/plugins/carddav dest=/var/lib/roundcube/plugins/carddav force=yes
  20. - name: Remove downloaded carddav plugin file
  21. file: state=absent path=/root/carddav_{{ carddav_version }}.tar.gz
  22. - name: Configure the Apache HTTP server for roundcube
  23. template: src=etc_apache2_sites-available_roundcube.j2 dest=/etc/apache2/sites-available/roundcube group=www-data owner=www-data force=yes
  24. - name: Configure roundcube
  25. copy: src=etc_roundcube_main.inc.php dest=/etc/roundcube/main.inc.php group=www-data owner=root mode=640 force=yes
  26. - name: Configure roundcube's managesieve plugin
  27. 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
  28. - name: Configure roundcube's carddav plugin
  29. 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
  30. - name: Copy global default sieve rules
  31. copy: src=etc_roundcube_global.sieve dest=/etc/roundcube/global.sieve owner=root group=www-data mode=640
  32. - name: Enable roundcube site
  33. command: a2ensite roundcube creates=/etc/apache2/sites-enabled/roundcube
  34. notify: restart apache