Pārlūkot izejas kodu

Use same Apache server name configuration across distros

Alex Payne 8 gadus atpakaļ
vecāks
revīzija
0579cf1ba9
1 mainītis faili ar 2 papildinājumiem un 9 dzēšanām
  1. 2
    9
      roles/common/tasks/apache.yml

+ 2
- 9
roles/common/tasks/apache.yml Parādīt failu

@@ -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'

Notiek ielāde…
Atcelt
Saglabāt