25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

56 lines
1.6 KiB

  1. - name: install required binary packages
  2. apt:
  3. name: "{{ packages }}"
  4. vars:
  5. packages:
  6. - apache2
  7. - php-horde-imp
  8. - php-horde-ingo
  9. - php-horde-kronolith
  10. - php-horde-turba
  11. - name: install patch to fix Debian bug #931255
  12. patch:
  13. src: horde-text-filter-linkurls.patch
  14. basedir: /usr/share/php/Horde
  15. notify: restart apache
  16. - name: Create Apache vhost configuration for HTTPS (Horde and Adminer)
  17. template:
  18. src: apache/webmail.conf-443.j2
  19. dest: /etc/apache2/sites-available/default-ssl.conf
  20. notify: restart apache
  21. - name: Enable Apache vhost for HTTPS
  22. command: /usr/sbin/a2ensite default-ssl creates=/etc/apache2/sites-enabled/default-ssl.conf
  23. notify: restart apache
  24. - name: Create Apache vhost configuration for HTTP (redirect to HTTPS)
  25. template:
  26. src: apache/webmail.conf-80.j2
  27. dest: /etc/apache2/sites-available/000-default.conf
  28. notify: restart apache
  29. - name: Enable Apache SSL module
  30. command: /usr/sbin/a2enmod ssl creates=/etc/apache2/mods-enabled/ssl.conf
  31. notify: restart apache
  32. - name: creating Horde MySQL database
  33. mysql_db:
  34. name: horde
  35. - name: creating MySQL user to access the Horde database
  36. mysql_user:
  37. name: horde
  38. password: "{{ispmail_mysql_horde_password}}"
  39. priv: horde.*:ALL
  40. # - name: Generate random secret key for this Horde installation
  41. # command: pwgen -s 20
  42. # register: horde_secret_key
  43. # - name: Generate Horde config file
  44. # template:
  45. # src: horde/conf.php.j2
  46. # dest: /etc/horde/horde/conf.php
  47. # - name: Create Horde database schema
  48. # command: /usr/bin/horde-db-migrate
  49. # # code: language=ansible insertSpaces=true tabSize=2