From dfd80ea8f84289158f199d42182f984e777b832d Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Sun, 17 Apr 2016 01:09:04 -0500 Subject: [PATCH] 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 --- tasks/keystone_apache.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/keystone_apache.yml b/tasks/keystone_apache.yml index 4bb0af85..0b750963 100644 --- a/tasks/keystone_apache.yml +++ b/tasks/keystone_apache.yml @@ -49,7 +49,7 @@ - name: Ensure Apache ServerName lineinfile: dest: "/etc/apache2/apache2.conf" - line: "ServerName {{ inventory_hostname }}" + line: "ServerName {{ ansible_hostname }}" notify: - Restart Apache tags: