Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 
 

29 рядки
1.2 KiB

  1. ---
  2. - name: adding Jessie backports repository (for Roundcube)
  3. apt_repository: repo='deb http://http.debian.net/debian jessie-backports main' state=present
  4. - name: install required binary packages
  5. apt: name={{item}} state=installed
  6. with_items:
  7. - roundcube
  8. - roundcube-plugins
  9. - apache2
  10. - libapache2-mod-php5
  11. notify: restart apache
  12. - name: Create Apache vhost configuration for Webmail
  13. template: src=webmail.conf.j2 dest=/etc/apache2/sites-available/webmail.conf
  14. notify: restart apache
  15. - name: Enable Apache vhost
  16. command: /usr/sbin/a2ensite webmail.conf creates=/etc/apache2/sites-enabled/webmail.conf
  17. notify: restart apache
  18. - name: Enabling Apache SSL module
  19. command: /usr/sbin/a2enmod ssl creates=/etc/apache2/mods-enabled/ssl.conf
  20. notify: restart apache
  21. - name: Creating random des_key for Roundcube
  22. shell: pwgen 24
  23. register: roundcube_random_des_key
  24. - name: Deploying Roundcube configuration
  25. template: src=roundcube-config.inc.php.j2 dest=/etc/roundcube/config.inc.php owner=root group=www-data mode=640
  26. - name: Deploying Roundcube managesieve plugin configuration
  27. copy: src=roundcube-managesieve-config.inc.php dest=/etc/roundcube/plugins/managesieve/config.inc.php mode=0640