Browse Source

Two small apache-related fixes

Luke Cyca 11 years ago
parent
commit
2f145ce543
2 changed files with 3 additions and 3 deletions
  1. 1
    1
      roles/common/tasks/main.yml
  2. 2
    2
      roles/webmail/tasks/roundcube.yml

+ 1
- 1
roles/common/tasks/main.yml View File

41
   service: name=ntp state=started enabled=yes
41
   service: name=ntp state=started enabled=yes
42
 
42
 
43
 - name: Disable default Apache site
43
 - name: Disable default Apache site
44
-  command: a2dissite default removes=/etc/apache2/sites-enabled/default
44
+  command: a2dissite 000-default removes=/etc/apache2/sites-enabled/000-default
45
   notify: restart apache
45
   notify: restart apache
46
 
46
 
47
 - name: Enable Apache headers module
47
 - name: Enable Apache headers module

+ 2
- 2
roles/webmail/tasks/roundcube.yml View File

7
 - name: Configure roundcube
7
 - name: Configure roundcube
8
   copy: src=etc_roundcube_main.inc.php dest=/etc/roundcube/main.inc.php group=www-data owner=root mode=640 force=yes
8
   copy: src=etc_roundcube_main.inc.php dest=/etc/roundcube/main.inc.php group=www-data owner=root mode=640 force=yes
9
 
9
 
10
-- name: Enable roundcube site 
11
-  command: a2ensite roundcube
10
+- name: Enable roundcube site
11
+  command: a2ensite roundcube creates=/etc/apache2/sites-enabled/roundcube
12
   notify: restart apache
12
   notify: restart apache
13
 
13
 

Loading…
Cancel
Save