소스 검색

Use same Apache server name configuration across distros

Alex Payne 9 년 전
부모
커밋
0579cf1ba9
1개의 변경된 파일2개의 추가작업 그리고 9개의 파일을 삭제
  1. 2
    9
      roles/common/tasks/apache.yml

+ 2
- 9
roles/common/tasks/apache.yml 파일 보기

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

Loading…
취소
저장