瀏覽代碼

Merge pull request #427 from sread/z-push-apache

Z-push apache config: Jessie also uses conf-available/conf-enabled
Sven Neuhaus 9 年之前
父節點
當前提交
89c7a6038a
共有 1 個文件被更改,包括 8 次插入5 次删除
  1. 8
    5
      roles/mailserver/tasks/z-push.yml

+ 8
- 5
roles/mailserver/tasks/z-push.yml 查看文件

44
 - name: Configure z-push apache alias and php settings
44
 - name: Configure z-push apache alias and php settings
45
   copy: src=etc_apache2_conf.d_z-push.conf dest=/etc/apache2/conf.d/z-push.conf
45
   copy: src=etc_apache2_conf.d_z-push.conf dest=/etc/apache2/conf.d/z-push.conf
46
   notify: restart apache
46
   notify: restart apache
47
-  when: ansible_distribution_release != 'trusty'
47
+  when: ansible_distribution_release != 'trusty' or ansible_distribution_release != 'jessie'
48
 
48
 
49
-- name: Create z-push apache alias and php configuration file for Ubuntu Trusty
49
+
50
+- name: Create z-push apache alias and php configuration file for Ubuntu Trusty / jessie
50
   copy: src=etc_apache2_conf.d_z-push.conf dest=/etc/apache2/conf-available/z-push.conf
51
   copy: src=etc_apache2_conf.d_z-push.conf dest=/etc/apache2/conf-available/z-push.conf
51
-  when: ansible_distribution_release == 'trusty'
52
+  when: ansible_distribution_release == 'trusty' or ansible_distribution_release == 'jessie'
53
+
52
 
54
 
53
-- name: Enable z-push Apache alias and PHP configuration file for Ubuntu Trusty
55
+- name: Enable z-push Apache alias and PHP configuration file for Ubuntu Trusty / jessie
54
   command: a2enconf z-push creates=/etc/apache2/conf-enabled/z-push.conf
56
   command: a2enconf z-push creates=/etc/apache2/conf-enabled/z-push.conf
55
   notify: restart apache
57
   notify: restart apache
56
-  when: ansible_distribution_release == 'trusty'
58
+  when: ansible_distribution_release == 'trusty' or ansible_distribution_release == 'jessie'
59
+
57
 
60
 
58
 - name: Configure z-push logrotate
61
 - name: Configure z-push logrotate
59
   copy: src=etc_logrotate_z-push dest=/etc/logrotate.d/z-push owner=root group=root mode=0644
62
   copy: src=etc_logrotate_z-push dest=/etc/logrotate.d/z-push owner=root group=root mode=0644

Loading…
取消
儲存