Quellcode durchsuchen

Use same Apache server name configuration across distros

Alex Payne vor 9 Jahren
Ursprung
Commit
0579cf1ba9
1 geänderte Dateien mit 2 neuen und 9 gelöschten Zeilen
  1. 2
    9
      roles/common/tasks/apache.yml

+ 2
- 9
roles/common/tasks/apache.yml Datei anzeigen

@@ -9,16 +9,9 @@
9 9
   command: a2enmod headers creates=/etc/apache2/mods-enabled/headers.load
10 10
   notify: restart apache
11 11
 
12
-- name: Set ServerName for Apache
13
-  template: src=fqdn.j2 dest=/etc/apache2/conf.d/fqdn
14
-  notify: restart apache
15
-  when: ansible_distribution_release != 'trusty'
16
-
17
-- name: Create ServerName configuration file for Apache for Ubuntu Trusty
12
+- name: Create ServerName configuration file for Apache
18 13
   template: src=fqdn.j2 dest=/etc/apache2/conf-available/fqdn.conf
19
-  when: ansible_distribution_release == 'trusty'
20 14
 
21
-- name: Set ServerName for Apache for Ubuntu Trusty
15
+- name: Set ServerName for Apache
22 16
   command: a2enconf fqdn creates=/etc/apache2/conf-enabled/fqdn.conf
23 17
   notify: restart apache
24
-  when: ansible_distribution_release == 'trusty'

Laden…
Abbrechen
Speichern