浏览代码

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'

正在加载...
取消
保存