Fix server/hostname for RFC 1034/1035
This change ensures that the apache ServerName is being set to the **ansible_hostname** fact. This ensures the Apache web server has an appropriate server name which is compliant to the RFC. Change-Id: Ia48dcf07d903b63cd7e5afaa2598d24dbdcb9642 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
parent
59ffe5e371
commit
dfd80ea8f8
@ -49,7 +49,7 @@
|
|||||||
- name: Ensure Apache ServerName
|
- name: Ensure Apache ServerName
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: "/etc/apache2/apache2.conf"
|
dest: "/etc/apache2/apache2.conf"
|
||||||
line: "ServerName {{ inventory_hostname }}"
|
line: "ServerName {{ ansible_hostname }}"
|
||||||
notify:
|
notify:
|
||||||
- Restart Apache
|
- Restart Apache
|
||||||
tags:
|
tags:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user