소스 검색

Moved Roundcube's Apache part into seperate role ispmail-webmail-apache

merge-requests/1/merge
Christoph Haas 10 년 전
부모
커밋
7152d61979
4개의 변경된 파일18개의 추가작업 그리고 13개의 파일을 삭제
  1. +2
    -1
      ispmail.yml
  2. +0
    -0
      roles/ispmail-webmail-apache/handlers/main.yml
  3. +16
    -0
      roles/ispmail-webmail-apache/tasks/main.yml
  4. +0
    -12
      roles/ispmail-webmail/tasks/main.yml

+ 2
- 1
ispmail.yml 파일 보기

@@ -9,5 +9,6 @@
- ispmail-database
- ispmail-postfix
- ispmail-dovecot
- { role: ispmail-webmail, when: "ispmail_populate_test_data == true" }
- ispmail-webmail
- ispmail-webmail-apache


roles/ispmail-webmail/handlers/main.yml → roles/ispmail-webmail-apache/handlers/main.yml 파일 보기


+ 16
- 0
roles/ispmail-webmail-apache/tasks/main.yml 파일 보기

@@ -0,0 +1,16 @@
- name: install required binary packages
apt: name={{item}} state=installed
with_items:
- apache2
- libapache2-mod-php5
notify: restart apache
- name: Create Apache vhost configuration for Webmail
template: src=webmail.conf.j2 dest=/etc/apache2/sites-available/webmail.conf
notify: restart apache
- name: Enable Apache vhost
command: /usr/sbin/a2ensite webmail.conf creates=/etc/apache2/sites-enabled/webmail.conf
notify: restart apache
- name: Enabling Apache SSL module
command: /usr/sbin/a2enmod ssl creates=/etc/apache2/mods-enabled/ssl.conf
notify: restart apache


+ 0
- 12
roles/ispmail-webmail/tasks/main.yml 파일 보기

@@ -6,18 +6,6 @@
with_items:
- roundcube
- roundcube-plugins
- apache2
- libapache2-mod-php5
notify: restart apache
- name: Create Apache vhost configuration for Webmail
template: src=webmail.conf.j2 dest=/etc/apache2/sites-available/webmail.conf
notify: restart apache
- name: Enable Apache vhost
command: /usr/sbin/a2ensite webmail.conf creates=/etc/apache2/sites-enabled/webmail.conf
notify: restart apache
- name: Enabling Apache SSL module
command: /usr/sbin/a2enmod ssl creates=/etc/apache2/mods-enabled/ssl.conf
notify: restart apache
- name: Creating random des_key for Roundcube
shell: pwgen 24
register: roundcube_random_des_key


불러오는 중...
취소
저장