|
@@ -41,12 +41,19 @@
|
41
|
41
|
- name: Copy z-push's config.php into place
|
42
|
42
|
template: src=usr_share_z-push_config.php.j2 dest=/usr/share/z-push/config.php
|
43
|
43
|
|
44
|
|
-- name: Create z-push Apache alias and PHP configuration file
|
|
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
|
|
46
|
+ notify: restart apache
|
|
47
|
+ when: ansible_distribution_release != 'trusty'
|
|
48
|
+
|
|
49
|
+- name: Create z-push apache alias and php configuration file for Ubuntu Trusty
|
45
|
50
|
copy: src=etc_apache2_conf.d_z-push.conf dest=/etc/apache2/conf-available/z-push.conf
|
|
51
|
+ when: ansible_distribution_release == 'trusty'
|
46
|
52
|
|
47
|
|
-- name: Enable z-push Apache alias and PHP configuration file
|
|
53
|
+- name: Enable z-push Apache alias and PHP configuration file for Ubuntu Trusty
|
48
|
54
|
command: a2enconf z-push creates=/etc/apache2/conf-enabled/z-push.conf
|
49
|
55
|
notify: restart apache
|
|
56
|
+ when: ansible_distribution_release == 'trusty'
|
50
|
57
|
|
51
|
58
|
- name: Configure z-push logrotate
|
52
|
59
|
copy: src=etc_logrotate_z-push dest=/etc/logrotate.d/z-push owner=root group=root mode=0644
|