Nenhuma descrição
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

roundcube.yml 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. - name: Determine whether roundcube is configured
  2. stat: path=/var/www/roundcube/config.inc.php
  3. register: roundcube_config
  4. - name: Install roundcube dependencies
  5. apt: pkg={{ item }} state=present
  6. with_items:
  7. - php5
  8. - php5-sqlite
  9. - php5-mcrypt
  10. - php5-gd
  11. - php5-pspell
  12. - php5-intl
  13. - php5-curl
  14. - aspell
  15. - aspell-en
  16. tags:
  17. - dependencies
  18. - name: Clone roundcube
  19. git: repo=https://github.com/roundcube/roundcubemail.git
  20. dest=/var/www/roundcube
  21. version={{ webmail_version }}
  22. update=no
  23. accept_hostkey=yes
  24. - name: Get Composer installer
  25. get_url: url=https://getcomposer.org/installer
  26. dest=/tmp/composer-installer
  27. - name: Copy compose configuration
  28. command: creates="/var/www/roundcube/composer.json" mv /var/www/roundcube/composer.json-dist /var/www/roundcube/composer.json
  29. - name: Install Composer
  30. command: php /tmp/composer-installer
  31. chdir=/root
  32. creates=/root/composer.phar
  33. - name: Initialize composer
  34. command: php /root/composer.phar install --no-dev
  35. chdir=/var/www/roundcube
  36. creates=/var/www/roundcube/vendor/autoload.php
  37. - name: Remove installer directory
  38. file: path=/var/www/roundcube/installer state=absent
  39. - name: Install Roundcube configuration
  40. template: src=var_www_roundcube_config_config.inc.j2 dest=/var/www/roundcube/config/config.inc.php
  41. - name: Create db directory
  42. file: path=/decrypted/roundcube mode=0775 state=directory
  43. - name: Make logs and temp directories writable by web server
  44. file: path=/var/www/roundcube/{{ item }} mode=0775 state=directory
  45. with_items:
  46. - temp
  47. - logs
  48. - name: Make roundcube directory accessible to web server
  49. file: path=/var/www/roundcube group=www-data recurse=yes state=directory
  50. - name: Configure Apache for Roundcube
  51. template: src=etc_apache2_sites-available_roundcube.j2
  52. dest=/etc/apache2/sites-available/roundcube.conf
  53. group=root owner=root force=yes
  54. - name: Enable Roundcube site
  55. command: a2ensite roundcube.conf creates=/etc/apache2/sites-enabled/roundcube.conf
  56. notify: restart apache