25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 
 

79 satır
2.2 KiB

  1. ---
  2. - name: install required binary packages
  3. apt:
  4. name: "{{ packages }}"
  5. update_cache: yes
  6. vars:
  7. packages:
  8. - roundcube
  9. - roundcube-plugins
  10. - roundcube-plugins-extra
  11. - roundcube-mysql
  12. - name: Creating random des_key for Roundcube
  13. shell: pwgen 24 1
  14. register: roundcube_random_des_key
  15. - name: Deploying Roundcube configuration
  16. template:
  17. src: config.inc.php.j2
  18. dest: /etc/roundcube/config.inc.php
  19. owner: root
  20. group: www-data
  21. mode: 0640
  22. - name: Deploying Roundcube managesieve plugin configuration
  23. template:
  24. src: plugins/managesieve/config.inc.php.j2
  25. dest: /etc/roundcube/plugins/managesieve/config.inc.php
  26. owner: root
  27. group: www-data
  28. mode: 0640
  29. - name: Deploying Roundcube password plugin configuration
  30. template:
  31. src: plugins/password/config.inc.php.j2
  32. dest: /etc/roundcube/plugins/password/config.inc.php
  33. owner: root
  34. group: www-data
  35. mode: 0640
  36. - name: Copy ISPmail logo
  37. copy:
  38. src: ispmail-logo.png
  39. dest: /var/lib/roundcube/skins/larry/
  40. - name: Enable Apache rewrite and ssl module
  41. shell: a2enmod {{item}}
  42. args:
  43. creates: /etc/apache2/mods-enabled/{{item}}.load
  44. with_items:
  45. - rewrite
  46. - ssl
  47. notify: restart apache
  48. - name: Create DocumentRoot for HTTP vhost
  49. file:
  50. path: /var/www/{{ispmail_fqdn}}
  51. state: directory
  52. owner: www-data
  53. group: www-data
  54. - name: Remove Apache default vhost pointing to dummy page
  55. file:
  56. path: /etc/apache2/sites-enabled/000-default.conf
  57. state: absent
  58. notify: restart apache
  59. - name: Configure HTTP vhost
  60. template:
  61. src: vhosts/http.j2
  62. dest: /etc/apache2/sites-available/{{ispmail_fqdn}}-http.conf
  63. notify: restart apache
  64. - name: Enable HTTP vhost
  65. shell: a2ensite {{ispmail_fqdn}}-http.conf
  66. args:
  67. creates: /etc/apache2/sites-enabled/{{ispmail_fqdn}}-http.conf
  68. notify: restart apache
  69. - name: Configure HTTPS vhost
  70. template:
  71. src: vhosts/https.j2
  72. dest: /etc/apache2/sites-available/{{ispmail_fqdn}}-https.conf
  73. notify: restart apache
  74. - name: Enable HTTPS vhost
  75. shell: a2ensite {{ispmail_fqdn}}-https.conf
  76. args:
  77. creates: /etc/apache2/sites-enabled/{{ispmail_fqdn}}-https.conf
  78. notify: restart apache