Sfoglia il codice sorgente

Merge pull request #265 from lvillani/ubuntu

Merge pull request #265
Alex Payne 10 anni fa
parent
commit
aee68661da

+ 1
- 1
roles/common/tasks/encfs.yml Vedi File

@@ -3,7 +3,7 @@
3 3
   with_items:
4 4
     - encfs
5 5
     - libfuse-dev
6
-    - fuse-utils
6
+    - fuse
7 7
 
8 8
 - name: Create encrypted directory
9 9
   file: state=directory path=/encrypted

+ 10
- 0
roles/common/tasks/main.yml Vedi File

@@ -46,6 +46,16 @@
46 46
 - name: Set ServerName for Apache
47 47
   template: src=fqdn.j2 dest=/etc/apache2/conf.d/fqdn
48 48
   notify: restart apache
49
+  when: ansible_distribution_release != 'trusty'
50
+
51
+- name: Create ServerName configuration file for Apache for Ubuntu Trusty
52
+  template: src=fqdn.j2 dest=/etc/apache2/conf-available/fqdn.conf
53
+  when: ansible_distribution_release == 'trusty'
54
+
55
+- name: Set ServerName for Apache for Ubuntu Trusty
56
+  command: a2enconf fqdn creates=/etc/apache2/conf-enabled/fqdn.conf
57
+  notify: restart apache
58
+  when: ansible_distribution_release == 'trusty'
49 59
 
50 60
 - include: encfs.yml tags=encfs
51 61
 - include: users.yml tags=users

+ 11
- 1
roles/mailserver/tasks/z-push.yml Vedi File

@@ -36,6 +36,16 @@
36 36
 - name: Configure z-push apache alias and php settings
37 37
   copy: src=etc_apache2_conf.d_z-push.conf dest=/etc/apache2/conf.d/z-push.conf
38 38
   notify: restart apache
39
-  
39
+  when: ansible_distribution_release != 'trusty'
40
+
41
+- name: Create z-push apache alias and php configuration file for Ubuntu Trusty
42
+  copy: src=etc_apache2_conf.d_z-push.conf dest=/etc/apache2/conf-available/z-push.conf
43
+  when: ansible_distribution_release == 'trusty'
44
+
45
+- name: Enable z-push Apache alias and PHP configuration file for Ubuntu Trusty
46
+  command: a2enconf z-push creates=/etc/apache2/conf-enabled/z-push.conf
47
+  notify: restart apache
48
+  when: ansible_distribution_release == 'trusty'
49
+
40 50
 - name: Configure z-push logrotate
41 51
   copy: src=etc_logrotate_z-push dest=/etc/logrotate.d/z-push owner=root group=root mode=0644

Loading…
Annulla
Salva