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.4KB

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